Module
Data.Function.Sub
- Package
- purescript-substructural
- Repository
- rightfold/purescript-substructural
#Sub Source
data Sub :: Type -> Type -> TypeA function that will not copy or discard references to its argument,
unless it is allowed to by a Clone or Drop instance.
Currently there is no syntax for Sub literals. You can create Sub
values only through combinators (mainly <<<) and the FFI (normal pure
unary JavaScript function).
Instances
#Clone Source
class Clone a whereValues which can be cloned. Instances of Clone must satisfy the
following laws:
- Clone:
fst' <<< clone = snd' <<< clone = id
Members
Instances
#unsafeClone Source
unsafeClone :: forall a. a -* (Tuple a a)Unsafely clone a value.
#unsafeDrop Source
unsafeDrop :: forall a. a -* UnitUnsafely drop a value.