#5862: Need kind annotations
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.4.1
Keywords: PolyKinds | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by goldfire):
I want to write {{{map}}} at the type level, potentially over lists with
rich kinds:
{{{
type family Map (f :: k1 -> k2) (l :: [k1]) :: [k2]
}}}
Without the kind annotations containing variables, GHC can infer the kinds
of {{{f}}} and {{{l}}}, but the result kind is always {{{*}}}. This
doesn't work for {{{Map}}}.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5862#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs