From 19ca657d6b247c1acab1329ccf0c54d896178c87 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 15 May 2012 01:06:39 +1000 Subject: Fixed a number of compilation errors --- Parse.hs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Parse.hs') diff --git a/Parse.hs b/Parse.hs index 769a883..484342f 100644 --- a/Parse.hs +++ b/Parse.hs @@ -1,3 +1,14 @@ +module Parse ( + getLines, + stripReturn, + removeEscChars, + removeQuotes, + separateBy, + isComment, + isNumber, + isName + ) where + import Control.Monad( liftM ) import qualified Data.Char as Char @@ -22,7 +33,7 @@ removeQuotes :: String -> String removeQuotes = init . tail -separateBy :: String -> Char -> [String] +separateBy :: Char -> String -> [String] separateBy char list = let f = (\x -> if (x == char) then ' ' -- cgit