Portability | GADTs |
---|---|
Stability | experimental |
Maintainer | conal@conal.net |
Safe Haskell | None |
Outputs (interfaces) -- means of presenting values
- data Output where
- output :: (Pair src, Pair snk, Lambda src snk, Title_f src, Title_f snk) => Output src snk t -> snk t
- oPrim :: snk a -> Output src snk a
- oLambda :: Input src a -> Output src snk b -> Output src snk (a -> b)
- oPair :: Output src snk a -> Output src snk b -> Output src snk (a, b)
- oTitle :: String -> Output src snk a -> Output src snk a
- asOLambda :: Output src snk (a -> b) -> (Input src a, Output src snk b)
- asOPair :: Output src snk (a, b) -> (Output src snk a, Output src snk b)
Output data type
An Output describes a way to present a functional value, perhaps interactively. It is the user-interface half of a tangible value. The constructors: primitive, function, pairing, and title.
output :: (Pair src, Pair snk, Lambda src snk, Title_f src, Title_f snk) => Output src snk t -> snk tSource
Output functions
Builders
oLambda :: Input src a -> Output src snk b -> Output src snk (a -> b)Source
Visualize a function. Akin to lambda