> Got a strange one.  I am compiling two files using GHC, one of which
> depends on the other.  The first compiles just fine, but the second
> compile gives an error on the *hi* file of the first.  Specifically:
> 
> dlb@hudson temp]$ ghc -c -fallow-undecidable-instances 
> -fglasgow-exts -fallow-overlapping-instances Structures.hs
> NOTE: Simplifier still going after 4 iterations; bailing out.
> ghc: module version changed to 1; reason: no old .hi file
> [dlb@hudson temp]$ ghc -c SymbolTable.hs
>  
> Structures.hi:47:
>     Too many parameters for class `SortedList'
>     In the class declaration for `SortedList'

The reason is that even though SymbolTable.hs doesn't use non-std
features, it imports Structures.hs which does.  If you use -fglasgow-exts
you should be ok.  I don't think this is worth 'fixing', do you?

Simon

Reply via email to