-
-
Save michaelficarra/4f1e134ca1d0f4b4bfdf to your computer and use it in GitHub Desktop.
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 PolyKinds, KindSignatures, MultiParamTypeClasses #-} | |
module Main where | |
class Category (arr :: k -> k -> *) where | |
id :: arr t t | |
(.) :: arr b c -> arr a b -> arr a c | |
instance Category (->) where | |
id x = x | |
(f . g) x = f (g x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment