Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- renderPackage :: [String] -> Package -> String
- renderPackageWith :: RenderSettings -> Alignment -> [String] -> [(String, [String])] -> Package -> String
- defaultRenderSettings :: RenderSettings
- data RenderSettings = RenderSettings {}
- newtype Alignment = Alignment Int
- data CommaStyle
Documentation
NOTE: This module is exposed to allow integration of Hpack into other tools. It is not meant for general use by end users. The following caveats apply:
- The API is undocumented, consult the source instead.
- The exposed types and functions primarily serve Hpack's own needs, not that of a public API. Breaking changes can happen as Hpack evolves.
As an Hpack user you either want to use the hpack
executable or a build
tool that supports Hpack (e.g. stack
or cabal2nix
).
renderPackageWith :: RenderSettings -> Alignment -> [String] -> [(String, [String])] -> Package -> String Source #
data RenderSettings Source #
Instances
Show RenderSettings Source # | |
Defined in Hpack.Render.Dsl showsPrec :: Int -> RenderSettings -> ShowS # show :: RenderSettings -> String # showList :: [RenderSettings] -> ShowS # | |
Eq RenderSettings Source # | |
Defined in Hpack.Render.Dsl (==) :: RenderSettings -> RenderSettings -> Bool # (/=) :: RenderSettings -> RenderSettings -> Bool # |
data CommaStyle Source #
Instances
Show CommaStyle Source # | |
Defined in Hpack.Render.Dsl showsPrec :: Int -> CommaStyle -> ShowS # show :: CommaStyle -> String # showList :: [CommaStyle] -> ShowS # | |
Eq CommaStyle Source # | |
Defined in Hpack.Render.Dsl (==) :: CommaStyle -> CommaStyle -> Bool # (/=) :: CommaStyle -> CommaStyle -> Bool # |