RE: Additional libraries with GHCi
My suggestion, therefore, is to add a note to section 3.5.2 of the GHC user guide ("Extra Libraries" in the section on GHCi), along the lines of:
[[ Additional libraries provided as Haskell Source files (.hs, .lhs) may be located by using the "-i" command line option. The directory name must be specified without a trailing "/" (or "\") character. ]]
There's a confusing overlap of terminology here: the GHCi documentation is using the term 'library' to mean a library of object code - files called foo.a or foo.lib, whereas you expect 'library' to mean a source code library. The -i option is documented earlier on, in section 3.2.1 ("The search path for finding source files..."). Cheers, Simon
Hi All, I am trying to declare an instance of MonadPlus class. However, both GHC and Hugs complaint MonadPlus class is not defined. Anyone here has experience with it? What package do I need to import? Thanks. -W-M- @ @ | \_/
participants (3)
-
Ferenc Wagner -
Simon Marlow -
Wang Meng