GHC 6.4 release candidates available

Ralf Lammel ralfla at microsoft.com
Wed Mar 2 15:05:27 EST 2005


It also worked in 6.2
Before that I don't remember.
It is a very sensible thing to do
simply because the mere ghci prompt suggests that
we are in the scope of the top-level module.
So one would really expect that ghci honors the
directives of the top-level module.

Ralf

> -----Original Message-----
> From: Keean Schupke [mailto:k.schupke at imperial.ac.uk]
> Sent: Wednesday, March 02, 2005 9:20 AM
> To: Simon Peyton-Jones
> Cc: Ralf Lammel; glasgow-haskell-users at haskell.org
> Subject: Re: GHC 6.4 release candidates available
> 
> In the past having:
> 
> {-# OPTIONS -fallow-overlapping-instances #-}
> 
> in a module was enough to get ghci to allow the overlaps.
> 
> so we do:
> 
> ghci Test.hs
> 
> now it does not work (but it did in 6.3), but:
> 
> ghci -fallow-overlapping-instances Test.hs
> 
> does... Even it Test.hs is the top level module.
> 
>     Keean.
> 
> Simon Peyton-Jones wrote:
> 
> >Ralf
> >
> >You have a pragma "-fallow-overlapping-instances" in Test.hs, and
indeed
> >it is honoured when compiling Test.hs.  But it's not taken into
account
> >when compiling top-level expressions, or, indeed, if you were to
import
> >Test into another module.
> >
> >If you say ":set -falllow-overlapping-instances" it'll work fine.
> >
> >Now, maybe you'd like the flag to attach permanently to the
*instance*,
> >so that if an instance decl is compiled with
> >-fallow-overlapping-instances, then no complaint will ever be issued
for
> >its overlaps, even if it is imported into a module that doesn't have
> >-fallow-overlapping-instances.  That would make sense, I think, but
it's
> >not implemented and never has been.
> >
> >Simon
> >
> >| -----Original Message-----
> >| From: glasgow-haskell-users-bounces at haskell.org
> >[mailto:glasgow-haskell-users-
> >| bounces at haskell.org] On Behalf Of Ralf Lammel
> >| Sent: 02 March 2005 08:45
> >| To: glasgow-haskell-users at haskell.org
> >| Subject: RE: GHC 6.4 release candidates available
> >|
> >| I think this is an old bug,
> >| or at least I have seen it months back.
> >|
> >| The "overlapping instances" directive does not make it to the
> >top-level.
> >| See attached sample with the offending session.
> >|
> >| Thanks for fixing.
> >| Ralf
> >
> >_______________________________________________
> >Glasgow-haskell-users mailing list
> >Glasgow-haskell-users at haskell.org
> >http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> >
> >



More information about the Glasgow-haskell-users mailing list