Accept empty input

This commit is contained in:
Justin Leitgeb 2014-03-01 09:34:29 -05:00
parent e379e7ea41
commit 7e4ddb4508
2 changed files with 1 additions and 2 deletions

View File

@ -17,6 +17,6 @@ word = do
parser :: P.Stream s m Char => [String] -> P.ParsecT s u m [Word]
parser acronyms = do
ws <- P.many1 $ P.choice [ acronym acronyms, word ]
ws <- P.many $ P.choice [ acronym acronyms, word ]
P.eof
return ws

View File

@ -8,7 +8,6 @@ import Data.Char (toLower)
import Data.List (intercalate)
underscore :: String -> Either ParseError String
underscore s = underscoreCustom [] s