import Control.Monad, Control.Applicative
import Data.Either, Data.Func, Data.Maybe, Data.Functor
-from StdFunc import o
+from StdFunc import o, const
import StdBool
import StdList
import StdChar
lexUntilNL = top until (eof <|> (item '\n' >>| pure Void))
lexComment :: Parser Char LexItem
- lexComment = list (fromString "//") >>| lexUntilNL
- >>= \chars->pure LexNL
+ lexComment = list (fromString "//") >>| lexUntilNL
+ >>| pure LexNL
lexBlockComment :: Parser Char LexItem
lexBlockComment = list (fromString "/*")