is -fno-monomorphism-restriction evil?

2007-10-09 Thread Jorge Marques Pelizzoni
Hi, all! It may be a side-effect of being a newbie, but many times I find the -fno-monomorphism-restriction quite handy. Is it intrinsically evil? I mean, has anyone had a bad time using it or does it imply some runtime performance overhead? I guess it is not portable, is it? Thanks in advance

Re: is -fno-monomorphism-restriction evil?

2007-10-09 Thread Matthew Danish
On Tue, Oct 09, 2007 at 03:29:55PM -0300, Jorge Marques Pelizzoni wrote: It may be a side-effect of being a newbie, but many times I find the -fno-monomorphism-restriction quite handy. Is it intrinsically evil? I mean, has anyone had a bad time using it or does it imply some runtime

RE: -fno-monomorphism-restriction

2004-12-03 Thread Simon Peyton-Jones
| b) this is a feature request: you want a flag -fmonomorphism-restriction | to restore the monomorphism restriction even if it's been turned | off by an earlier flag? I've implemented this flag in the HEAD, as you requested. It'll be in 6.4 Simon

RE: -fno-monomorphism-restriction

2004-11-30 Thread Simon Peyton-Jones
- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Christian Maeder | Sent: 29 November 2004 16:31 | To: Simon Peyton-Jones | Cc: GHC Users Mailing List | Subject: Re: -fno-monomorphism-restriction | | I've found a much shorter example (without imports

Re: -fno-monomorphism-restriction

2004-11-29 Thread Christian Maeder
OPTIONS line, will make it go through) Cheers Christian {-# OPTIONS -fno-monomorphism-restriction #-} module NoMonoRestr where data ShATerm = ShAAppl String [Int] [Int] data ATermTable = ATermTable getATerm :: ATermTable - ShATerm getATerm = undefined data Annotation = Annotation data Annoted

Re: -fno-monomorphism-restriction

2004-11-29 Thread Christian Maeder
Christian Maeder wrote: I've found a much shorter example (without imports) that does not compile. and shorter: {-# OPTIONS -fno-monomorphism-restriction #-} module NoMonoRestr where data ATermTable = ATermTable data Annotation = Annotation data Annoted a = Annoted a [Annotation] toPair

RE: -fno-monomorphism-restriction

2004-11-26 Thread Simon Peyton-Jones
I'm not sure whether you are saying (a) or (b): a) This is a compiler bug; even with -fno-monomorphism-restriction the module should compile. Are you sure? b) this is a feature request: you want a flag -fmonomorphism-restriction to restore the monomorphism restriction even

Re: -fno-monomorphism-restriction

2004-11-26 Thread Christian Maeder
Simon Peyton-Jones wrote: I'm not sure whether you are saying (a) or (b): a) This is a compiler bug; even with -fno-monomorphism-restriction the module should compile. Are you sure? b) this is a feature request: you want a flag -fmonomorphism-restriction to restore

Re: -fno-monomorphism-restriction

2004-11-26 Thread Christian Maeder
I wrote | If someone wants to reproduce the error, do the following: | 1) check out HetCATS repository with: | cvs -d pserver:[EMAIL PROTECTED]:/repository co | HetCATS | 2) comment out variable HC_PACKAGE in the Makefile (to avoid dependency | from uni) | 3) add the flag -fno-monomorphism

-fno-monomorphism-restriction

2004-11-24 Thread Christian Maeder
Hi, I've a file ATC/Sml_cats.hs that does not compile (see below) with the flag -fno-monomorphism-restriction (ghc 6.2.2), whereas it compiles fine without that option. Since I want to use -fno-monomorphism-restriction for other files (from programatica) I've a problem, because