diff options
-rw-r--r-- | tprint/src/Main.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tprint/src/Main.hs b/tprint/src/Main.hs index 4eb774c..8a534b8 100644 --- a/tprint/src/Main.hs +++ b/tprint/src/Main.hs | |||
@@ -129,5 +129,11 @@ tprint TPrint{ operation = DraftReplace{..}, ..} Client{..} _ = withPrintout inp | |||
129 | 129 | ||
130 | tprint TPrint{ operation = DraftDelete{..}, ..} Client{..} _ = unless dryRun $ draftDelete draftId | 130 | tprint TPrint{ operation = DraftDelete{..}, ..} Client{..} _ = unless dryRun $ draftDelete draftId |
131 | 131 | ||
132 | tprint TPrint{ operation = DraftPrint{..}, ..} client@Client{..} out = do | ||
133 | let block' | ||
134 | | block = blockLoop client out | ||
135 | | otherwise = hPutStrLn out . show | ||
136 | unless dryRun $ block' =<< draftPrint draftId printer | ||
137 | |||
132 | 138 | ||
133 | tprint _ _ _ = undefined | 139 | tprint _ _ _ = undefined |