Hi, Has anyone succesfully used Fran1.16 and Hugs98-Nov2003? I was using an older Hugs (Nov. 2002) with Fran earlier today, and that worked fine. After upgrading, however, I appear to be hitting some issues with hierarchical name spaces: antony@goliath ~ $ hugs -98 Fran __ __ __ __ ____ ___ _________________________________________ || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2003 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Report bugs to: hugs-bugs@haskell.org || || Version: Nov 2003 _________________________________________ Hugs mode: Restart with command line option +98 for Haskell 98 mode ERROR "C:\\frp\\Fran\Src\FranLoader.hs" - Can't find imported module "InputMonitor" Prelude> ...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 ---------------------------------------------------------------- antony@goliath /cygdrive/c/frp/Fran $ ...but, unfortunately, attempting to load FranLoader directly doesn't work either: antony@goliath /cygdrive/c/frp/Fran/src $ hugs -98 FranLoader __ __ __ __ ____ ___ _________________________________________ || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2003 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Report bugs to: hugs-bugs@haskell.org || || Version: Nov 2003 _________________________________________ Hugs mode: Restart with command line option +98 for Haskell 98 mode ERROR ".\BaseTypes.hs" - Unknown entity "int32ToInt" imported from module "Int" Concurrent> Any help or suggestions would be appreciated. Thanks, -antony -- Antony Courtney Grad. Student, Dept. of Computer Science, Yale University antony@apocalypse.org http://www.apocalypse.org/pub/u/antony
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.
participants (2)
-
Antony Courtney -
Ross Paterson