X-Git-Url: https://git.rmz.io/my-scheme.git/blobdiff_plain/2c9201bc9abac31f46a43c621c4f47553d17c7a4..0a6833657330f8514c235e672b1d4dc6e1ec7ad5:/app/Main.hs diff --git a/app/Main.hs b/app/Main.hs index 233fa6c..cea4c9b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -18,11 +18,11 @@ spaces :: Parser () spaces = skipMany space parseString :: Parser LispVal -parseString = do - char '"' - x <- many (noneOf "\"") - char '"' - return $ String x +parseString = do char '"' + x <- many innerChar + char '"' + return $ String x + where innerChar = noneOf "\"" parseAtom :: Parser LispVal parseAtom = do