Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Comp.Render
Synopsis
- class (Functor f, Foldable f, ShowConstr f) => Render (f :: Type -> Type) where
- stringTreeAlg :: Alg f (Tree String)
- stringTree :: forall (f :: Type -> Type). Render f => Term f -> Tree String
- showTerm :: forall (f :: Type -> Type). Render f => Term f -> String
- drawTerm :: forall (f :: Type -> Type). Render f => Term f -> IO ()
- writeHtmlTerm :: forall (f :: Type -> Type). Render f => FilePath -> Term f -> IO ()
Documentation
class (Functor f, Foldable f, ShowConstr f) => Render (f :: Type -> Type) where Source #
The stringTree
algebra of a functor. The default instance creates a tree
with the same structure as the term.
Minimal complete definition
Nothing
stringTree :: forall (f :: Type -> Type). Render f => Term f -> Tree String Source #
Convert a term to a Tree
showTerm :: forall (f :: Type -> Type). Render f => Term f -> String Source #
Show a term using ASCII art