#5255: String literals cause runtime crashes when OverloadedStrings is in effect
---------------------------------+------------------------------------------
Reporter: YitzGale | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by YitzGale):
Replying to [comment:3 igloo]:
> I think it's actually quite common to make bad `Num` instances...
> making `(*)` an error.
True. That is a related but different problem. It is a problem with
the design of the `Num` class. At least `(*)` is a function. It
shouldn't fail at runtime either, but when it does, that is not as
bad as a *literal* failing at runtime.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5255#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs