Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.507 kB
{- ----------------------------------------------------------------------------------------
what : kind signatures
expected: error because U's kind is too general for Functor
---------------------------------------------------------------------------------------- -}
{-# LANGUAGE PolyKinds #-}
module KindSig2 where
-- the signature would make U acceptable for Functor
-- U :: * -> *
data U a = UU -- inferred kind: forall a . a -> *
instance Functor U where
fmap f UU = UU
main = return()
Jump to Line
Something went wrong with that request. Please try again.