initial commit

This commit is contained in:
macocianradu
2021-10-16 17:31:01 +02:00
parent 2681d8e3e1
commit 76f2099361
32 changed files with 1524 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{-# LANGUAGE OverloadedStrings #-}
module PrettyPrinter.General where
import Prettyprinter
printDescription :: Maybe String -> Doc a -> Doc a
printDescription (Just description) doc =
vcat [enclose "{-" "-}" (pretty description), doc]
printDescription Nothing doc = doc