[Haskell-beginners] ghci :load vs import
Silent Leaf
silent.leaf0 at gmail.com
Tue Apr 19 19:43:03 UTC 2016
I'm a true beginner, so maybe what I say is false or useless, but from the
few I know, I think the statement "import" is asking for the name of a
module, not just the name of a file. So, is your file starting with the
module declaration statement "module Powser (...) where" ?
Le mardi 19 avril 2016, Doug McIlroy <doug at cs.dartmouth.edu> a écrit :
> I have module Powser stored in haskell/Powser.hs.
> There is no file ./Powser*.
>
> This loads the module
> shellprompt> ghci -ihaskell
> Prelude> :load Powser
> But this can't find it
> shellprompt> ghci -ihaskell
> Prelude> import Powser
>
> What might cause the difference?
> (I am running ghci 7.8.4.)
>
> Doug
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160419/0f443643/attachment.html>
More information about the Beginners
mailing list