|
RE: Problem with derived instances.: msg#00017lang.haskell.glasgow.bugs
Crumbs! You're right. Albeit only in ghci mode, not when compiling. This bug has been in GHC *forever*. Will fix. Workaround: compile that module Simon | -----Original Message----- | From: Leon Smith [mailto:lps@xxxxxxxxxxx] | Sent: 10 January 2003 06:25 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: Problem with derived instances. | | This code produces "True" with ghc-5.04.2 and ghc-5.02.3. It works as I | would expect it to with ghc-4.08.1. Similarly, the derived instances of Ord | also don't work. | | The only time that I've found in my limited expermentation that equality | returns false is: | | Str "a" == Str "ab" | | best, | leon | | > infixr 3 :* | > infixr 2 :+ | > | > data RE a = RE a :+ RE a | > | RE a :* RE a | > | Cat [RE a] | > | Star (RE a) | > | Plus (RE a) | > | Opt (RE a) | > | Comp (RE a) | > | Empty | > | Str [a] | > deriving (Show, Eq, Ord) | > | > main = print (Str "ab" == (Str "a" :+ Str "b")) | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Small bug in Data.PackedString.splitWithPS, Simon Marlow |
|---|---|
| Next by Date: | [ ghc-Bugs-655400 ] Header files from f.i. not propagated to non-local inlining, SourceForge.net |
| Previous by Thread: | Problem with derived instances., Leon Smith |
| Next by Thread: | Small bug in Data.PackedString.splitWithPS, Tomasz Zielonka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |