Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ormolu.Config
Description
Configuration options used by the tool.
Synopsis
- data Config region = Config {
- cfgDynOptions :: ![DynOption]
- cfgUnsafe :: !Bool
- cfgDebug :: !Bool
- cfgCheckIdempotence :: !Bool
- cfgColorMode :: !ColorMode
- cfgRegion :: !region
- data ColorMode
- data RegionIndices = RegionIndices {
- regionStartLine :: !(Maybe Int)
- regionEndLine :: !(Maybe Int)
- data RegionDeltas = RegionDeltas {
- regionPrefixLength :: !Int
- regionSuffixLength :: !Int
- defaultConfig :: Config RegionIndices
- regionIndicesToDeltas :: Int -> RegionIndices -> RegionDeltas
- newtype DynOption = DynOption {
- unDynOption :: String
- dynOptionToLocatedStr :: DynOption -> Located String
Documentation
Ormolu configuration.
Constructors
Config | |
Fields
|
Whether to use colors and other features of ANSI terminals.
data RegionIndices Source #
Region selection as the combination of start and end line numbers.
Constructors
RegionIndices | |
Fields
|
Instances
Eq RegionIndices Source # | |
Defined in Ormolu.Config | |
Show RegionIndices Source # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> RegionIndices -> ShowS show :: RegionIndices -> String showList :: [RegionIndices] -> ShowS |
data RegionDeltas Source #
Region selection as the length of the literal prefix and the literal suffix.
Constructors
RegionDeltas | |
Fields
|
Instances
Eq RegionDeltas Source # | |
Defined in Ormolu.Config | |
Show RegionDeltas Source # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> RegionDeltas -> ShowS show :: RegionDeltas -> String showList :: [RegionDeltas] -> ShowS |
defaultConfig :: Config RegionIndices Source #
Default
.Config
RegionIndices
regionIndicesToDeltas Source #
Arguments
:: Int | Total number of lines in the input |
-> RegionIndices | Region indices |
-> RegionDeltas | Region deltas |
Convert RegionIndices
into RegionDeltas
.
A wrapper for dynamic options.
Constructors
DynOption | |
Fields
|
dynOptionToLocatedStr :: DynOption -> Located String Source #
Convert DynOption
to
.Located
String