| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FreeC.Backend.Coq.Pretty
Contents
Description
This module contains a Pretty instance for nodes of the Coq AST.
Since we want to have a pretty instance for all Gallina instances
but want to avoid overlapping instances, there is a wrapper type
PrettyCoq. To pretty print a node x of the Coq AST you can write
pretty (PrettyCoq x).
There are instances for the actual node of commonly pretty printed types of nodes.
Synopsis
- newtype PrettyCoq a = PrettyCoq {
- unPrettyCoq :: a
- prettyCoq :: Gallina a => a -> Doc
Documentation
Wrapper data type that makes a Coq AST node of type a pretty printable.
Constructors
| PrettyCoq | |
Fields
| |