[GHC] #9196: Higher-rank constraint treated as type instead
GHC
ghc-devs at haskell.org
Thu Jun 12 17:58:20 UTC 2014
#9196: Higher-rank constraint treated as type instead
-------------------------------------+------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by archblob):
Experimenting with this I found that ghc will go along with `foo :: a ->
((forall b. P b) => b) -> a` and transform it in `foo :: a -> ((forall b.
P b) -> b) -> a`.
I may have a simple fix for this, just a check for foralls when
typechecking a context.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9196#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list