module StylishCabal
(
pretty
, prettyWithIndent
, render
, parseCabalFile
, readCabalFile
, Result(..)
, result
, printWarnings
, displayError
, Doc
, plain
, displayIO
, displayS
) where
import Text.PrettyPrint.ANSI.Leijen (Doc, displayIO, displayS, line, plain, renderSmart)
import Parse
import Render
import Transform
#if !MIN_VERSION_base(4,11,0)
import Data.Monoid
#endif
pretty = prettyWithIndent 2
prettyWithIndent i gpd = uncurry (blockBodyToDoc i) (toBlocks gpd) <> line
render = renderSmart 1.0