| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
LinearTypes
Synopsis
- unrestricted :: a -> b
- linear :: a %1 -> b
- poly :: forall a (m :: Multiplicity) b. a %m -> b
- data C (m :: Multiplicity) = C {}
- data G (mult :: Multiplicity) where
- G :: forall (mult :: Multiplicity). {..} -> G mult
Documentation
unrestricted :: a -> b #
Does something unrestricted.
poly :: forall a (m :: Multiplicity) b. a %m -> b #
Does something polymorphic.
data C (m :: Multiplicity) #
A record with non-linear fields.