| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Printing.AST
Description
Defines types similar to those in Drasil.Language, but better suited to printing.
Synopsis
- data LinkType
- data Ops
- = IsIn
- | Integer
- | Real
- | Rational
- | Natural
- | Boolean
- | Comma
- | Prime
- | Log
- | Ln
- | Sin
- | Cos
- | Tan
- | Sec
- | Csc
- | Cot
- | Arcsin
- | Arccos
- | Arctan
- | Not
- | Dim
- | Exp
- | Neg
- | Cross
- | Dot
- | Scale
- | Eq
- | NEq
- | Lt
- | Gt
- | LEq
- | GEq
- | Impl
- | Iff
- | Subt
- | And
- | Or
- | Add
- | Mul
- | Summ
- | Inte
- | Prod
- | Point
- | Perc
- | LArrow
- | RArrow
- | ForAll
- | VAdd
- | VSub
- | Partial
- | SAdd
- | SRemove
- | SUnion
- | SContains
- data Fence
- data OverSymb = Hat
- data Fonts
- data Spacing = Thin
- type Label = Spec
- data Expr
- data Spec
- type Title = Spec
- data ListType
- data ItemType
Documentation
Different types of links for referencing. May be internal, a citation, or external. A citation may also hold additional reference information.
Different operators.
Holds the type of "text fencing" ("(), {}, |, ||").
Redefine the Expr type from Language.Drasil to be more suitable to printing.
Constructors
| Dbl Double | |
| Int Integer | |
| Str String | |
| Case [(Expr, Expr)] | Case expressions |
| Mtx [[Expr]] | Matrix. |
| Set [Expr] | |
| Row [Expr] | |
| Ident String | |
| Label String | |
| Spec Special | Special characters. |
| Sub Expr | Subscript. |
| Sup Expr | Superscript. |
| MO Ops | |
| Over OverSymb Expr | Holds an expression that needs a hat symbol "^" |
| Fenced Fence Fence Expr | Holds an expression that is surrounded with a |
| Font Fonts Expr | Holds an expression with a font. |
| Div Expr Expr | Fractions are a layout thing. |
| Sqrt Expr | Roots are also a layout thing. Just sqrt for now. |
| Spc Spacing | Holds the |
Redefine the Sentence type from Language.Drasil to be more suitable to printing.
Constructors
| E Expr | Holds an expression. |
| S String | Holds a string. |
| Tooltip Spec Spec | Tooltip (1) supplements body (2) with optionally displayable content, e.g., on hover for HTML. |
| Spec :+: Spec infixr 5 | Concatenation. |
| Sp Special | Special characters. |
| Ref LinkType String Spec | Holds the actual reference of form |
| EmptyS | Empty sentence. |
| Quote Spec | Quotes are different in different languages. |
| HARDNL | Newline.
| A title is just a sentence ( |
Different types of lists that contain an ItemType and may contain a label and a title.
May be ordered, unordered, simple, descriptive, or for definitions. More suitable to printing.