Skip to content
Snippets Groups Projects
Commit afca0b6c authored by mnay1u19's avatar mnay1u19
Browse files

modified readCSV

parent 480483d1
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ readCSV fname = do
return $ readCSVString str
readCSVString :: String -> [[String]]
readCSVString whole = [splitElem ',' (line++" ") | line <- splitElem '\n' whole]
readCSVString whole = [splitElem ',' (line++" " ) | line <- splitElem '\n' whole]
splitElem :: Eq a => a -> [a] -> [[a]]
splitElem elem = split (/=elem)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment