Skip to content

Instantly share code, notes, and snippets.

@robotmay
Created November 29, 2019 16:03
Show Gist options
  • Save robotmay/82b35a101cfaeb4b5ac346533e2509cd to your computer and use it in GitHub Desktop.
Save robotmay/82b35a101cfaeb4b5ac346533e2509cd to your computer and use it in GitHub Desktop.
src/Main.hs:116:49: error:
• Couldn't match type ‘Text’ with ‘()’
Expected type: ParsecT Void Text Data.Functor.Identity.Identity ()
Actual type: ParsecT
Void Text Data.Functor.Identity.Identity (Tokens Text)
• In the first argument of ‘(<|>)’, namely ‘eol’
In the second argument of ‘someTill’, namely ‘(eol <|> eof)’
In the second argument of ‘(<$>)’, namely
‘(someTill anySingle (eol <|> eof))’
|
116 | message <- Text.pack <$> (someTill anySingle (eol <|> eof)) <?> "message"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment