Re: Fran1.16 and Hugs98-Nov2003

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
On Mon, Dec 01, 2003 at 04:44:13PM -0500, Antony Courtney wrote:
> 
> ...examining the body of Fran.hs, it appears to be using a previous Hugs 
> feature for loading a module from a sub-directory which clashes 
> syntactically with hierarchical module support:
> 
> $ cat Fran.hs
> ----------------------------------------------------------------
> -- Redirection module so that you don't have to put
> -- "./src" on your Path.
> --
> -- Suitable for use with Hugs 98 on Win32.
> ----------------------------------------------------------------
> module Fran(module Src.FranLoader) where
> import Src.FranLoader
> ----------------------------------------------------------------

Yes, Hugs used to always add the directory of the importing module to the
search path.  Now it's more selective (cf section 2.2 of the User's Guide),
so such hacks no longer work.

> ...but, unfortunately, attempting to load FranLoader directly doesn't 
> work either:
> 
> [...]
> 
> ERROR ".\BaseTypes.hs" - Unknown entity "int32ToInt" imported from 
> module "Int"

Those conversions are gone: you can use fromIntegral instead.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.