[Haskell-beginners] ghci loading of hs files...

Patrick Lynch kmandpjlynch at verizon.net
Thu Feb 3 22:09:15 CET 2011

...I'm using the book "Real World Haskell"...
...In Chapter 22, it uses two files, namely: ...\ch22\PodDB.hs and ...\ch22\PodTypes.hs.

...This is the calling code in PodDB.hs:
   {-- snippet all --}
   module PodDB where
   import Database.HDBC
   import Database.HDBC.Sqlite3
   import PodTypes

...I was instructed to start ghci and invoke the command: ...> :load C:\Users\User\Downloads\rwh-examples2\examples\ch22\poddb.hs
...this gives the following error message:
     Could not find module `PodTypes':
        Use -v to see a list of the files searched for.
     Failed, modules loaded: none.

...I then tried the command: :l C:\Users\User\Downloads\rwh-examples2\examples\ch22\poddb.hs C:\Users\User\Downloads\rwh-examples2\examples\ch22\podtypes.hs
...it loaded both files...

...is there someway to modify the code in PodDB.hs that would allow me to simply invoke the command, as mentioned by the author, :load PodDB.hs?

Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110203/c19a8a32/attachment.htm>

More information about the Beginners mailing list