mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
initial commit
This commit is contained in:
10
src/PrettyPrinter/General.hs
Normal file
10
src/PrettyPrinter/General.hs
Normal 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
|
||||
Reference in New Issue
Block a user