[Haskell-beginners] help me with eroor
kolli kolli
nammukolli04 at gmail.com
Fri Oct 14 21:59:22 CEST 2011
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'
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111014/be160744/attachment.htm>
More information about the Beginners
mailing list