
14 Oct
2011
14 Oct
'11
3:59 p.m.
import Text.ParserCombinators.Parsec csvFile = endBy line eol line = sepBy cell (char ',') cell = many (noneOf ",\n") eol = char '\n' parseCSV :: String -> Either ParseError [[String]] parseCSV input = parse csvFile "(unknown)" input *showing error: <interactive>:1:32: Not in scope: `main' *