
#11519: Inferring non-tau kinds -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * cc: adamgundry (added) Comment: I think it would be very sensible to permit type variable bindings in instance declarations. The syntax could be {{{#!hs instance forall (c :: forall k . k -> Constraint) . Show (TypeRepX c) where }}} which is hardly beautiful, but gets the job done. My thesis had another example of this need (if we had a `pi` quantifier, of course...): {{{#!hs instance pi (n :: Nat) . Monad (Vec n) where }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11519#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler