Using functions from package haskell98 - GHC 5.04

Ross Paterson ross@soi.city.ac.uk
Tue, 22 Oct 2002 17:56:27 +0100


On Tue, Oct 22, 2002 at 04:11:17PM +0200, Wolfgang Jeltsch wrote:
> On Tuesday, 2002-10-22, 11:28, CEST, Malcolm Wallace wrote:
> > IIRC, the current release of Hugs has the function isDigit in the
> > Prelude, and so doesn't need any imports.  (This will change in the
> > new October 2002 release.)
> 
> It hasn't changed. Obviously, RC1 has it still in the prelude:

Not if you give hugs the +N option, which switches it to a new
library setup (which also includes lots of the hierarchical modules
distributed with GHC, but is mostly backward compatible).

> And if it would have changed, AFAICS, Hugs would have to support
> mutually recursive modules. Then the man page would be wrong because it
> says that Hugs doesn't support them.

It's done without mutually recursive modules: both Prelude and Char
import Hugs.Prelude, but only export what they're supposed to.
(And Hugs treats modules imported by the Prelude as internal things that
don't implicitly import the Prelude.)