[GHC] #14004: G
GHC
ghc-devs at haskell.org
Sat Jul 22 14:20:24 UTC 2017
#14004: G
-------------------------------------+-------------------------------------
Reporter: zaoqi | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by AntC):
Hi @bgamari, I got this to work just changing the pragmas, per my
comment:7. (So I editted that comment after posting.) Note there's a `Eq a
=>` constraint on the `GEq a a` instance; but not on the `GEq a b`.
{{{
Dyn "hello" == Dyn "bye" ===> False
Dyn "hello" == Dyn "hello" ===> True
Dyn "hello" == Dyn 'b' ===> False
}}}
I agree @zaoqi's definition for `Dyn` is 'dodgy'.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14004#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list