stylish-haskell-0.12.2.0: Haskell code prettifier

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Stylish.Step.Data

Synopsis

Documentation

data Config Source #

Constructors

Config 

Fields

  • cEquals :: !Indent

    Indent between type constructor and = sign (measured from column 0)

  • cFirstField :: !Indent

    Indent between data constructor and { line (measured from column with data constructor name)

  • cFieldComment :: !Int

    Indent between column with { and start of field line comment (this line has cFieldComment = 2)

  • cDeriving :: !Int

    Indent before deriving lines (measured from column 0)

  • cBreakEnums :: !Bool

    Break enums by newlines and follow the above rules

  • cBreakSingleConstructors :: !Bool

    Break single constructors when enabled, e.g. Indent 2 will not cause newline after =

  • cVia :: !Indent

    Indentation between via clause and start of deriving column start

  • cCurriedContext :: !Bool

    If true, use curried context. E.g: allValues :: Enum a => Bounded a => Proxy a -> [a]

  • cSortDeriving :: !Bool

    If true, will sort type classes in a deriving list.

  • cMaxColumns :: !MaxColumns
     
Instances
Show Config Source # 
Instance details

Defined in Language.Haskell.Stylish.Step.Data

defaultConfig :: Config Source #

TODO: pass in MaxColumns?

data Indent Source #

Constructors

SameLine 
Indent !Int 
Instances
Eq Indent Source # 
Instance details

Defined in Language.Haskell.Stylish.Step.Data

Methods

(==) :: Indent -> Indent -> Bool #

(/=) :: Indent -> Indent -> Bool #

Show Indent Source # 
Instance details

Defined in Language.Haskell.Stylish.Step.Data