Skip to content

Instantly share code, notes, and snippets.

View emmettng's full-sized avatar
🇨🇳

emmettng

🇨🇳
View GitHub Profile
@emmettng
emmettng / Univ.hs
Created August 27, 2023 22:36 — forked from sjoerdvisscher/Univ.hs
Universal properties with plain Control.Category
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE UndecidableInstances #-}