Scary, but true...the floats in my version of ghc don't like
to be referenced. The program
data MassPnt = MassPnt Float (Float, Float)
deriving (Show)
main = do
print 1.18088e+11-- (1)
let
x = 1.18088e+11
Hi Glaswegians,
[This is not necessarily a bug; nevertheless, any advice
would be appreciated.]
During linking of a (big) Happy generate file, I ended up
with a linker message like
KCParser.o(.text+0x41a9f): undefined reference to
Hi GHC-Developers!
I encountered a confusing error message, which you can
reproduce with
type P a = Maybe a
instance Monad P where
(=) = error "foo"
return = error "bar"
I get
bug.hs:5: `P' should have 1 argument, but has been given 0 .
with
** ghc 2.05 **
(maybe
I encountered a confusing error message, which you can
reproduce with
type P a = Maybe a
instance Monad P where
(=) = error "foo"
return = error "bar"
I get
bug.hs:5: `P' should have 1 argument, but has been given 0 .
Would it be better if it said
Simon Marlow wrote:
I take your point that this isn't very consistent: there should be a
way to turn off all warnings easily. What do other people think?
The options are:
* have all warnings off by default, a standard set of warnings
being available by adding the -W