The problem, is simple enough - your module is called "ParseLib" 
 but you tried to import "Parselib".
Haskell being case-sensitive, this didnae work.
 (The fact that your files system isn't case sensitive doesn't affect this.)


[reid@haggis]$ grep module *.hs
Constraints.hs:module Constraints where
ParseLib.hs:module ParseLib where
Parsers.hs:module Parsers where

[reid@haggis]$ grep import *.hs
Constraints.hs:--import "doaitse/Lib_Parse_Comb_Ext"
ParseLib.hs:import Constraints
Parsers.hs:import Constraints
Parsers.hs:import Parselib

Incidentally, when you uncomment the import in Constraints.hs, you
 might need to change it to:

 import "doaitse/Lib_Parse_Comb_Ext" as Lib_Parse_Comb_Ext

so that Hugs will know that you've imported a module called
 "Lib_Parse_Comb_Ext" and not a module called "doaitse/Lib_Parse_Comb_Ext".

You'll see us doing this a little in some of the Hugs libraries:

[reid@haggis]$ grep import hugs/lib/hugs/*.hs
Graphics.hs:import "../Graphics/GraphicsLoader" as GraphicsLoader
Haskore.hs:import "../Haskore/src/HaskoreLoader" as HaskoreLoader

- a sneaky device to avoid putting all the Graphics modules and all the
 Haskore modules onto our search path.

Orrabest,

Alastair

> [EMAIL PROTECTED] reports the following problem.
> 
> Version:       1.4 (971031) 
> OS:            WINNT 
> compiler:      (downloaded as binary) 
> configuration:  
> Expected behaviour:
> I'm loading module parsers
> parsers imports parselib
> parselib imports constraints
> I'd like this to load
> Observed behaviour:
> I get the Error:
> ERROR "parsers.hs": Module "Parselib" not previously loaded 
> which I don't understand (sorry)
> 
> 
> Transcript:
>       ___    ___   ___    ___   __________   __________
>      /  /   /  /  /  /   /  /  /  _______/  /  _______/       Hugs 1.4 beta
>     /  /___/  /  /  /   /  /  /  / _____   /  /______
>    /  ____   /  /  /   /  /  /  / /_   /  /______   /  The Nottingham and Yale
>   /  /   /  /  /  /___/  /  /  /___/  /  _______/  /    Haskell User's System
>  /__/   /__/  /_________/  /_________/  /_________/         Version 971031
> 
>    Copyright (c) The University of Nottingham and Yale University, 1994-1997.
>     Bug reports: [EMAIL PROTECTED]   Web: http://www.haskell.org/hugs.
> 
> Reading file "C:\programming\hugs\lib\Prelude.hs":
> 
> Hugs session for:
> C:\programming\hugs\lib\Prelude.hs
> Type :? for help
> Prelude> :l parsers
> Reading file "parsers.hs":
> Reading file "Constraints.hs":
> Reading file "Parselib.hs":
> Reading file "parsers.hs":
> ERROR "parsers.hs": Module "Parselib" not previously loaded
> ParseLib>

Reply via email to