aboutsummaryrefslogtreecommitdiff
path: root/tp-bbcode/src/Thermoprint/Printout/BBCode.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tp-bbcode/src/Thermoprint/Printout/BBCode.hs')
-rw-r--r--tp-bbcode/src/Thermoprint/Printout/BBCode.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tp-bbcode/src/Thermoprint/Printout/BBCode.hs b/tp-bbcode/src/Thermoprint/Printout/BBCode.hs
index cbe2618..dd5edb0 100644
--- a/tp-bbcode/src/Thermoprint/Printout/BBCode.hs
+++ b/tp-bbcode/src/Thermoprint/Printout/BBCode.hs
@@ -104,7 +104,7 @@ morph :: DomForest -> Either SemanticError Printout
104-- ^ Parse a list of paragraphs 104-- ^ Parse a list of paragraphs
105-- 105--
106-- Since we permit only cooked input via 'Raw' 'Paragraph' is identical to 'Block' 106-- Since we permit only cooked input via 'Raw' 'Paragraph' is identical to 'Block'
107morph = fmap Seq.fromList . mapM (\t -> Seq.singleton . Cooked <$> parse BlockCtx t) 107morph = fmap (Printout . Seq.fromList) . mapM (\t -> Paragraph . Seq.singleton . Cooked <$> parse BlockCtx t)
108 108
109parseDom :: DomTree -> ParseResult 109parseDom :: DomTree -> ParseResult
110-- ^ Invoke 'asLine' and 'asBlock' to parse a single 'DomTree' 110-- ^ Invoke 'asLine' and 'asBlock' to parse a single 'DomTree'