Skip to content

Instantly share code, notes, and snippets.

@lspitzner
Created January 7, 2017 20:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lspitzner/9440fef9816bf8b9610be7376cb0e47c to your computer and use it in GitHub Desktop.
Save lspitzner/9440fef9816bf8b9610be7376cb0e47c to your computer and use it in GitHub Desktop.
haskell kinds and example classes/inhabitants
kinds and their inhabitants
*
inhb: Bool, Int, Void, ..
clss: Num, Show, Eq, Typeable, Monoid, Semigroup, ..
* -> *
inhb: [], Maybe, Tree, ZipList, MVar, ST, IO, ..
clss: Functor, Monad, Foldable, Traversable, GMonoid, GShow, ..
* -> * -> *
inhb: (->), Either, (,), Tagged, Map, Const
clss: Category, Arrow, BiFunctor, ProFunctor, Strong, Choice, Traversing, Mapping, machines:Automaton, darcs:Invert
(* -> *) -> (* -> *)
inhb: Reverse, IdentityT, Alt, ListT, MaybeT, Free, ..
clss: MonadTrans, MFunctor
(* -> *) -> (* -> *) -> (* -> *)
inhb: Sum, Pair, Compose, FreeT, ProgramT, ..
clss: _
* -> (* -> *) -> * -> *
inhb: StateT, ReaderT, ..
clss:
* -> * -> * -> (* -> *) -> * -> *
inhb: RWST
clss:
(* -> *) -> *
inhb:
clss: CZip
(* -> *) -> (* -> *) -> *
inhb: DSum, DMap
((* -> *) -> *) -> *
inhb: groundhog:Unique
clss:
(* -> * -> *) -> * -> * -> *
inhb: WrappedArrow, Tambara, Pastro, FreeTraversing, Closure
clss: Bifoldable
(* -> * -> *) -> * -> * -> * -> *
inhb: lens:Bazaar
(* -> *) -> (* -> * -> *) -> * -> * -> *
inhb: Tannen, Cayley
clss:
(* -> * -> *) -> (* -> * -> *) -> (* -> * -> *)
inhb: Product, Ran, Rift
clss:
(* -> * -> *) -> (* -> *) -> (* -> *) -> * -> * -> *
inhb: Biff
clss:
(* -> *) -> * -> * -> *
inhb: Star, Kleisli, FreeF, ..
clss:
k -> *
inhb: Proxy
clss: ?
Constraint -> *
inhb: Dict
clss:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment