[GHC] #11519: Inferring non-tau kinds

GHC ghc-devs at haskell.org
Sat Jan 30 22:12:49 UTC 2016


#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


More information about the ghc-tickets mailing list