Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- class Build a where
- data Ctx
- parens :: Builder -> Builder
- pretty :: Build a => a -> Text
- buildDecl :: (Build s, Build p) => Decl s p -> Builder
- buildExp :: (Build s, Build p) => Ctx -> Exp s p -> Builder
- buildParam :: Param -> Builder
- buildKey :: Key -> Builder
- buildTrain :: (Build s, Build p) => Train s p -> Builder
- buildCar :: (Build s, Build p) => Car s p -> Builder
- buildSnv :: (Build s, Build p) => Snv s p -> Builder
- buildSnvBind :: (Build s, Build p) => SnvBind s p -> Builder
- buildUps :: Ups -> Builder
- buildUpsBump :: UpsBump -> Builder
- buildRef :: (Build s, Build p) => Ref s p -> Builder
- buildText :: Text -> Builder
- buildPrim :: Prim -> Builder
Documentation
Class of things that can be converted to text builders.
Context we're currently in when pretty printing.
buildExp :: (Build s, Build p) => Ctx -> Exp s p -> Builder Source #
Yield a builder for an expression.
buildParam :: Param -> Builder Source #
Yield a builder for a parameter.
buildSnvBind :: (Build s, Build p) => SnvBind s p -> Builder Source #
Yield a builder for a substitution binding.
buildUpsBump :: UpsBump -> Builder Source #
Yield a builder for an ups bump.