Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-15 Thread
Dear Claus, et al. I've already responded in more detail in another e-mail on the seemingly inconsistent behaviour of GHCi, but I also wanted to respond to your points here. On Jun 10, 2010, at 4:15 PM, Claus Reinke wrote: >> I have been experimenting some more with environments for lab work f

Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-15 Thread
On Jun 11, 2010, at 5:10 AM, Brandon S. Allbery KF8NH wrote: > This doesn't surprise me; when putting it in the module, it affects only that > module. When using either command line version, it affects *everything*... > and what's breaking is not your definition of Number, but the ghci > e

Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-10 Thread Brandon S. Allbery KF8NH
On Jun 10, 2010, at 05:59 , Philip K.F. Hölzenspies wrote: [holze...@ewi1043:work/FPPrac]% ghci BugDemo.hs GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linki

Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-10 Thread Claus Reinke
I have been experimenting some more with environments for lab work for an FP intro course. One thing students tend to have difficulty with in the initial labs are the error messages including type classes, or any kind of more general type than they expected. I am trying to work around this, by sup

Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-10 Thread Daniel Fischer
On Thursday 10 June 2010 14:02:10, Philip K.F. Hölzenspies wrote: > Dear GHCers, > > > > Shouldn't the expected behaviour of GHCi be that the "entry module" > determines the entire context? In other words, if module X in > > ghci X > > or in > > ghci > > > :l X > > contains the LANGUAGE-pragma NoI

Re: Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-10 Thread Philip K.F.
Dear GHCers, With regards to the e-mail below, I have done one more test and found that ghci -fno-implicit-prelude and ghci -XNoImplicitPrelude behave the same. However, I'm still a little taken aback by the use thereof. Consider two files Foo.hs and Bar.hs: Foo.hs: {-# LANGUAGE NoImplic

Unexpected NoImplicitPrelude behaviour in GHCi (bug?)

2010-06-10 Thread Philip K.F.
Dear GHCers, I have been experimenting some more with environments for lab work for an FP intro course. One thing students tend to have difficulty with in the initial labs are the error messages including type classes, or any kind of more general type than they expected. I am trying to work around