Files
RosettaHaskellCompiler/src/PrettyPrinter/General.hs
macocianradu 76f2099361 initial commit
2021-10-16 17:31:01 +02:00

10 lines
281 B
Haskell

{-# 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