Module

StackSafe.Function

Package
purescript-stacksafe-function
Repository
safareli/purescript-stacksafe-function

#Func Source

newtype Func a b

A newtype over normal function (->), which guarantees stack safety. It's safe for use in FFI code, as representation of underlying function is not changed.

NOTE: Stack safety applies to composition only! It does not make a function, that is not stack-safe, safe.

Constructors

Instances

#run Source

run :: forall b a. Func a b -> a -> b

#type (-#>) Source

Operator alias for StackSafe.Function.Func (right-associative / precedence 4)

#(#$) Source

Operator alias for StackSafe.Function.run (right-associative / precedence 0)