
#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): I simplified this a little bit, you just need an explicit `forall` and parentheses. This works: {{{ foo :: forall a. P a => a -> a }}} This does not: {{{ foo :: (forall a. P a) => a -> a }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9196#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler