[Haskell-beginners] How to load multiple source files in GHCi?

Alexander Bernauer alex-haskell at copton.net
Wed Aug 29 17:08:04 CEST 2012


Hi

On Wed, Aug 29, 2012 at 03:07:09PM +0200, Yang wrote:
>     I have a few source files in current directory to load as
> modules of my library in GHCi.

When starting ghci, specify the directory to your modules with the -i
option. Then, withing GHCI say:

ghci> :module +Name.Of.Module
ghci> function_from_module

HTH

Alex
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120829/9b25848d/attachment.pgp>


More information about the Beginners mailing list