Safe HaskellNone
LanguageHaskell2010

LinearTypes

Synopsis

Documentation

unrestricted :: a -> b #

Does something unrestricted.

linear :: a %1 -> b #

Does something linear.

poly :: forall a (m :: Multiplicity) b. a %m -> b #

Does something polymorphic.

data C (m :: Multiplicity) #

A record with non-linear fields.

Constructors

C 

Fields

data G (mult :: Multiplicity) where #

A GADT record with non-linear fields.

Constructors

G 

Fields