Closed clintonmead closed 7 years ago
Added PolyKinds to list of extensions for module Rank2.
PolyKinds
Rank2
This is useful as it allows functors like this:
data D (t :: Bool -> *) = D (t 'True) (t 'False) instance Rank2.Functor D where f <$> (D x y) = D (f x) (f y)
In this case, D :: (Bool -> *) -> *
D :: (Bool -> *) -> *
But without PolyKinds, only types of kind (* -> *) -> * are accepted.
(* -> *) -> *
I also bumped the version to 0.1.1.
Seems innocuous enough.
Added
PolyKinds
to list of extensions for moduleRank2
.This is useful as it allows functors like this:
In this case,
D :: (Bool -> *) -> *
But without
PolyKinds
, only types of kind(* -> *) -> *
are accepted.I also bumped the version to 0.1.1.