Module

StackSafe.Function

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

#Func Source

newtype Func a b

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

Constructors

Instances

#run Source

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

#functionCompose Source

functionCompose :: forall d c b. (c -> d) -> (b -> c) -> (b -> d)