Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type PPM = MultiRWS '[Map AnnKey Anns, Config, Anns] '[Builder, [BrittanyError], Seq String] '[] Source #
data LayoutState Source #
LayoutState | |
|
lstate_baseY :: LayoutState -> Int Source #
lstate_indLevel :: LayoutState -> Int Source #
data BrittanyError Source #
ErrorInput String | parsing failed |
ErrorUnusedComment String | internal error: some comment went missing |
LayoutWarning String | some warning |
Data ast => ErrorUnknownNode String ast | internal error: pretty-printing is not implemented for type of node in the syntax-tree |
ErrorOutputCheck | checking the output for syntactic validity failed |
type ToBriDocM = MultiRWS '[Config, Anns] '[[BrittanyError], Seq String] '[NodeAllocIndex] Source #
BDFEmpty | |
BDFLit !Text | |
BDFSeq [f (BriDocF f)] | |
BDFCols ColSig [f (BriDocF f)] | |
BDFSeparator | |
BDFAddBaseY BrIndent (f (BriDocF f)) | |
BDFBaseYPushCur (f (BriDocF f)) | |
BDFBaseYPop (f (BriDocF f)) | |
BDFIndentLevelPushCur (f (BriDocF f)) | |
BDFIndentLevelPop (f (BriDocF f)) | |
BDFPar | |
| |
BDFAlt [f (BriDocF f)] | BDAddIndent BrIndent (BriDocF f) | BDNewline |
BDFForwardLineMode (f (BriDocF f)) | |
BDFExternal AnnKey (Set AnnKey) Bool Text | |
BDFAnnotationPrior AnnKey (f (BriDocF f)) | |
BDFAnnotationKW AnnKey (Maybe AnnKeywordId) (f (BriDocF f)) | |
BDFAnnotationRest AnnKey (f (BriDocF f)) | |
BDFLines [f (BriDocF f)] | |
BDFEnsureIndent BrIndent (f (BriDocF f)) | |
BDFForceMultiline (f (BriDocF f)) | |
BDFForceSingleline (f (BriDocF f)) | |
BDFNonBottomSpacing (f (BriDocF f)) | |
BDFSetParSpacing (f (BriDocF f)) | |
BDFForceParSpacing (f (BriDocF f)) | |
BDFDebug String (f (BriDocF f)) |
type BriDocNumbered = (Int, BriDocFInt) Source #
newtype NodeAllocIndex Source #
isNotEmpty :: BriDoc -> Bool Source #
briDocSeqSpine :: BriDoc -> () Source #
briDocForceSpine :: BriDoc -> BriDoc Source #
data VerticalSpacingPar Source #
data VerticalSpacing Source #
newtype LineModeValidity a Source #
pattern LineModeValid :: forall t. t -> LineModeValidity t Source #
pattern LineModeInvalid :: forall t. LineModeValidity t Source #