shithub: MicroHs

ref: 977b959064ac1d5d3ceba5ad7a32e29bb46bfc0c
dir: /lib/Data/Proxy.hs/

View raw version
module Data.Proxy(module Data.Proxy) where
import Primitives
import Data.Bool_Type
import Data.Eq
import Data.Functor
import Text.Show

type Proxy :: forall (k::Kind) . k -> Type
data Proxy a = Proxy

instance forall a . Show (Proxy a) where
  show _ = "Proxy"

instance forall a . Eq (Proxy a) where
  _ == _  =  True

instance Functor Proxy where
  fmap _ Proxy = Proxy