| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
LText.Document
Documentation
Constructors
| Document | |
Fields
| |
data DocumentBody Source #
Constructors
| RawText [Text] | |
| Expression Expr |
Instances
| Eq DocumentBody Source # | |
Defined in LText.Document | |
| Show DocumentBody Source # | |
Defined in LText.Document Methods showsPrec :: Int -> DocumentBody -> ShowS # show :: DocumentBody -> String # showList :: [DocumentBody] -> ShowS # | |
| Arbitrary DocumentBody Source # | |
Defined in LText.Document | |
repackDocument :: [DocumentBody] -> [DocumentBody] Source #
parseDocument :: MonadParse m => Text -> m (Document, Maybe (Text, Text)) Source #
printDocument :: MonadPrettyPrint m => Maybe (Text, Text) -> Document -> m Text Source #
fromDocument :: Document -> Expr Source #
data PrintError Source #
Constructors
| ConcatExprText Expr | |
| NoExplicitDelimiters |
Instances
| Eq PrintError Source # | |
Defined in LText.Document | |
| Show PrintError Source # | |
Defined in LText.Document Methods showsPrec :: Int -> PrintError -> ShowS # show :: PrintError -> String # showList :: [PrintError] -> ShowS # | |
| Generic PrintError Source # | |
Defined in LText.Document Associated Types type Rep PrintError :: Type -> Type # | |
| Exception PrintError Source # | |
Defined in LText.Document Methods toException :: PrintError -> SomeException # fromException :: SomeException -> Maybe PrintError # displayException :: PrintError -> String # | |
| type Rep PrintError Source # | |
Defined in LText.Document type Rep PrintError = D1 (MetaData "PrintError" "LText.Document" "ltext-0.1.3-KNJsl6iolIZABSVPFveE5J" False) (C1 (MetaCons "ConcatExprText" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Expr)) :+: C1 (MetaCons "NoExplicitDelimiters" PrefixI False) (U1 :: Type -> Type)) | |
handlePrintError :: PrintError -> IO a Source #
toDocument :: MonadThrow m => Expr -> m Document Source #
hasConcatAbsLit :: Expr -> Bool Source #
data PrintabilityMode Source #
Constructors
| InsideConcat | |
| InsideExpr |