X-Git-Url: https://git.rmz.io/my-scheme.git/blobdiff_plain/537e327f072fb094316845a5e3105f4fbb1aa385..68bf6f9829f136bb6d1f9c87fc78547f0c290e5c:/app/Main.hs?ds=inline diff --git a/app/Main.hs b/app/Main.hs index 88ae7f7..67ec8dd 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -34,9 +34,9 @@ parseAtom = do _ -> Atom atom parseNumber :: Parser LispVal -parseNumber = many1 digit >>= \ ds -> - let a = read ds - in return $ Number a +parseNumber = do ds <- many1 digit + let a = read ds + return $ Number a parseExpr :: Parser LispVal parseExpr = parseString