registry-0.3.0.8: data structure for assembling components
Safe HaskellNone
LanguageHaskell2010

Data.Registry.Internal.Dynamic

Description

Utility functions to work with Dynamic values

Synopsis

Documentation

applyFunction Source #

Arguments

:: Function

function

-> [Value]

inputs

-> Either Text Value

result

Apply a function to a list of Dynamic values

applyModification Source #

Arguments

:: Function

function

-> Value

inputs

-> Either Text Value

result

Apply a function modifying a single value and keeping its type to be used with Modifiers

applyFunctionDyn Source #

Arguments

:: Dynamic

function

-> [Dynamic]

inputs

-> Either Text Dynamic

result

Apply a Dynamic function to a list of Dynamic values

applyOneParam :: Dynamic -> Dynamic -> Either Text Dynamic Source #

Apply just one dynamic parameter to a dynamic function

collectInputTypes :: Function -> [SomeTypeRep] Source #

If Dynamic is a function collect all its input types

outputType :: SomeTypeRep -> SomeTypeRep Source #

If the input type is a function type return its output type