symantic-6.3.0.20170807: Library for Typed Tagless-Final Higher-Order Composable DSL
Language.Symantic.Interpreting.View
Contents
View
Description
Interpreter to serialize an expression into a Text.
Text
Synopsis
newtype View a Source #
Interpreter's data.
Constructors
Fields
Instances
Methods
apply :: View ((a -> b) -> a -> b) Source #
app :: View (a -> b) -> View a -> View b Source #
lam :: (View a -> View b) -> View (a -> b) Source #
let_ :: View var -> (View var -> View res) -> View res Source #
lam1 :: (View a -> View b) -> View (a -> b) Source #
qual :: proxy q -> View t -> View (q #> t) Source #
showsPrec :: Int -> View a -> ShowS #
show :: View a -> String #
showList :: [View a] -> ShowS #
type DepthLam = Int Source #
view :: View a -> Text Source #
Interpreter.
view0 :: Text -> View a Source #
view1 :: Text -> View a1 -> View a Source #
view2 :: Text -> View a1 -> View a2 -> View a Source #
view3 :: Text -> View a1 -> View a2 -> View a3 -> View a Source #
viewInfix :: Text -> Infix -> View a1 -> View a2 -> View a Source #