stylish-haskell-0.11.0.0: Haskell code prettifier

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Stylish.Step.Data

Documentation

data Indent Source #

Constructors

SameLine 
Indent !Int 
Instances
Show Indent Source # 
Instance details

Defined in Language.Haskell.Stylish.Step.Data

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)

Instances
Show Config Source # 
Instance details

Defined in Language.Haskell.Stylish.Step.Data

datas :: Module l -> [Decl l] Source #

type ChangeLine = Change String Source #

step' :: Config -> Lines -> Module -> Lines Source #

commentsWithin :: LineBlock -> [Comment] -> [Comment] Source #