[Haskell-beginners] ghci :load vs import

Doug McIlroy doug at cs.dartmouth.edu
Tue Apr 19 19:34:49 UTC 2016


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


More information about the Beginners mailing list