Created
February 1, 2018 10:14
-
-
Save laserpants/4e9eb0f0ea09608c767631aacd4f366d to your computer and use it in GitHub Desktop.
Haskell category
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE UnicodeSyntax #-} | |
module Category where | |
class Category (c :: k -> k -> *) where | |
id :: c x x | |
(.) :: c y z -> c x y -> c x z | |
instance Category (->) where | |
id = Prelude.id | |
f . g = f Prelude.. g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment