packages feed

joint-0.1.2: Control/Joint/Schemes/UT.hs

module Control.Joint.Schemes.UT (UT (..)) where

import Control.Joint.Core (type (:.), type (:=))
import Control.Joint.Composition (Composition (Primary, run))

newtype UT t u a = UT (u :. t := a)

instance Composition (UT t u) where
	type Primary (UT t u) a = u :. t := a
	run (UT x) = x