[Haskell-beginners] Beginners Digest, Vol 106, Issue 7

Francesco Ariis fa-ml at ariis.it
Tue Apr 18 12:48:06 UTC 2017


On Tue, Apr 18, 2017 at 03:39:28PM +0300, Andrey Klaus wrote:
> Hello everybody,
> 
> A small question.
> -----
> packageP = do
>     literal “package"
> -----
> 
> what is the "literal" in this code? My problem is
> 
> $ ghc ParserTest.hs
> [1 of 1] Compiling ParserTest       ( ParserTest.hs, ParserTest.o )

Hello Andrey,
    literal is not in scope, apparently. Did you forget to put an
import at the top of ParserTest.hs? E.g.:

    import SomeParserModule


More information about the Beginners mailing list