aboutsummaryrefslogtreecommitdiff
path: root/tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs')
-rw-r--r--tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs b/tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs
index edd4c5a..8e15417 100644
--- a/tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs
+++ b/tp-bbcode/src/Thermoprint/Printout/BBCode/Inverse.hs
@@ -24,10 +24,10 @@ import Data.Monoid
24import Thermoprint.Printout 24import Thermoprint.Printout
25 25
26cobbcode :: Printout -> Either UnicodeException Text 26cobbcode :: Printout -> Either UnicodeException Text
27cobbcode (toList -> ps) = mconcat . intersperse "\n\n" <$> mapM handlePar ps 27cobbcode (toList . getParagraphs -> ps) = mconcat . intersperse "\n\n" <$> mapM handlePar ps
28 28
29handlePar :: Seq Chunk -> Either UnicodeException Text 29handlePar :: Paragraph -> Either UnicodeException Text
30handlePar (toList -> cs) = mconcat <$> mapM handleChunk cs 30handlePar (toList . getChunks -> cs) = mconcat <$> mapM handleChunk cs
31 31
32handleChunk :: Chunk -> Either UnicodeException Text 32handleChunk :: Chunk -> Either UnicodeException Text
33handleChunk (Cooked b) = Right $ handleBlock b 33handleChunk (Cooked b) = Right $ handleBlock b