split into multiple files

This commit is contained in:
IGI-111
2015-04-03 22:48:20 +02:00
parent 46430779b3
commit 614a615a12
3 changed files with 60 additions and 59 deletions

View File

@@ -2,7 +2,6 @@ module CSVParser (
parseCSV
)where
import Text.ParserCombinators.Parsec
csvFile :: GenParser Char st [[String]]
@@ -29,11 +28,10 @@ remainingCells =
<|> return [] -- No comma? Return [], no more cells
cellContent :: GenParser Char st String
cellContent =
many (noneOf ",\n")
cellContent = many (noneOf ",\n")
eol :: GenParser Char st Char
eol = char '\n'
parseCSV :: String -> Either ParseError [[String]]
parseCSV input = parse csvFile "(unknown)" input
parseCSV = parse csvFile "(unknown)"