[GHC] #14321: -fsolve-constant-dicts is not very robust when dealing with GADTs
GHC
ghc-devs at haskell.org
Wed Oct 4 20:09:40 UTC 2017
#14321: -fsolve-constant-dicts is not very robust when dealing with GADTs
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #9701 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
I'm not sure what you are expecting here.
`isItSilly` tyepchecks and elaborates thus:
{{{
isItSilly (v::a) (Silly (d:: Ord a) (x::a)) = (<) d v x
}}}
It can't do anyting else.
`isItSillyIntTA` is simply a call to `isItSilly`. No dictionaries at all;
solving constant dictionries doesn't arise.
Ditto `isItSillyInt`.
Look as if it's all behaving precisely as advertised.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14321#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list