floskell-0.11.0: A flexible Haskell source code pretty printer

Safe Haskell | Safe-Inferred
Language | Haskell2010

Floskell.Config

# Documentation

data Indent #

Constructors

Align |
IndentBy !Int |
AlignOrIndentBy !Int |

#### Instances

Instances details

FromJSON Indent # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser Indent # parseJSONList :: Value -> Parser [Indent] # omittedField :: Maybe Indent #
ToJSON Indent # |
Instance details Defined in Floskell.Config Methods toJSON :: Indent -> Value # toEncoding :: Indent -> Encoding # toJSONList :: [Indent] -> Value # toEncodingList :: [Indent] -> Encoding # omitField :: Indent -> Bool #
Generic Indent # |
Instance details Defined in Floskell.Config Associated Types type Rep Indent :: Type -> Type Methods from :: Indent -> Rep Indent x to :: Rep Indent x -> Indent
Show Indent # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> Indent -> ShowS show :: Indent -> String showList :: [Indent] -> ShowS
Eq Indent # |
Instance details Defined in Floskell.Config Methods (==) :: Indent -> Indent -> Bool (/=) :: Indent -> Indent -> Bool
Ord Indent # |
Instance details Defined in Floskell.Config Methods compare :: Indent -> Indent -> Ordering (<) :: Indent -> Indent -> Bool (<=) :: Indent -> Indent -> Bool (>) :: Indent -> Indent -> Bool (>=) :: Indent -> Indent -> Bool max :: Indent -> Indent -> Indent min :: Indent -> Indent -> Indent
type Rep Indent # |

Instance details

Defined in Floskell.Config

type Rep Indent = D1 ('MetaData "Indent" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "Align" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IndentBy" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :+: C1 ('MetaCons "AlignOrIndentBy" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))

data LayoutContext #

Constructors

Declaration |
Type |
Pattern |
Expression |
Other |

#### Instances

Instances details

FromJSON LayoutContext # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser LayoutContext # parseJSONList :: Value -> Parser [LayoutContext] # omittedField :: Maybe LayoutContext #
ToJSON LayoutContext # |
Instance details Defined in Floskell.Config Methods toJSON :: LayoutContext -> Value # toEncoding :: LayoutContext -> Encoding # toJSONList :: [LayoutContext] -> Value # toEncodingList :: [LayoutContext] -> Encoding # omitField :: LayoutContext -> Bool #
Bounded LayoutContext # |
Instance details Defined in Floskell.Config Methods minBound :: LayoutContext maxBound :: LayoutContext
Enum LayoutContext # |

Instance details

Defined in Floskell.Config

Methods

succ :: LayoutContext -> LayoutContext

pred :: LayoutContext -> LayoutContext

toEnum :: Int -> LayoutContext

fromEnum :: LayoutContext -> Int

enumFrom :: LayoutContext -> [LayoutContext]

enumFromThen :: LayoutContext -> LayoutContext -> [LayoutContext]

enumFromTo :: LayoutContext -> LayoutContext -> [LayoutContext]

enumFromThenTo :: LayoutContext -> LayoutContext -> LayoutContext -> [LayoutContext]

Generic LayoutContext # |
Instance details Defined in Floskell.Config Associated Types type Rep LayoutContext :: Type -> Type Methods from :: LayoutContext -> Rep LayoutContext x to :: Rep LayoutContext x -> LayoutContext
Show LayoutContext # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> LayoutContext -> ShowS show :: LayoutContext -> String showList :: [LayoutContext] -> ShowS
Eq LayoutContext # |
Instance details Defined in Floskell.Config Methods (==) :: LayoutContext -> LayoutContext -> Bool (/=) :: LayoutContext -> LayoutContext -> Bool
Ord LayoutContext # |

Instance details

Defined in Floskell.Config

Methods

compare :: LayoutContext -> LayoutContext -> Ordering

(<) :: LayoutContext -> LayoutContext -> Bool

(<=) :: LayoutContext -> LayoutContext -> Bool

(>) :: LayoutContext -> LayoutContext -> Bool

(>=) :: LayoutContext -> LayoutContext -> Bool

max :: LayoutContext -> LayoutContext -> LayoutContext

min :: LayoutContext -> LayoutContext -> LayoutContext

type Rep LayoutContext # |

Instance details

Defined in Floskell.Config

type Rep LayoutContext = D1 ('MetaData "LayoutContext" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) ((C1 ('MetaCons "Declaration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Type" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Pattern" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Expression" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (U1 :: Type -> Type))))

data Location #

Constructors

Before |
After |

#### Instances

Instances details

Bounded Location # |
Instance details Defined in Floskell.Config Methods minBound :: Location maxBound :: Location
Enum Location # |
Instance details Defined in Floskell.Config Methods succ :: Location -> Location pred :: Location -> Location toEnum :: Int -> Location fromEnum :: Location -> Int enumFrom :: Location -> [Location] enumFromThen :: Location -> Location -> [Location] enumFromTo :: Location -> Location -> [Location] enumFromThenTo :: Location -> Location -> Location -> [Location]
Generic Location # |
Instance details Defined in Floskell.Config Associated Types type Rep Location :: Type -> Type Methods from :: Location -> Rep Location x to :: Rep Location x -> Location
Show Location # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> Location -> ShowS show :: Location -> String showList :: [Location] -> ShowS
Eq Location # |
Instance details Defined in Floskell.Config Methods (==) :: Location -> Location -> Bool (/=) :: Location -> Location -> Bool
Ord Location # |
Instance details Defined in Floskell.Config Methods compare :: Location -> Location -> Ordering (<) :: Location -> Location -> Bool (<=) :: Location -> Location -> Bool (>) :: Location -> Location -> Bool (>=) :: Location -> Location -> Bool max :: Location -> Location -> Location min :: Location -> Location -> Location
type Rep Location # |
Instance details Defined in Floskell.Config type Rep Location = D1 ('MetaData "Location" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "Before" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "After" 'PrefixI 'False) (U1 :: Type -> Type))

data WsLoc #

Constructors

WsNone |
WsBefore |
WsAfter |
WsBoth |

#### Instances

Instances details

FromJSON WsLoc # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser WsLoc # parseJSONList :: Value -> Parser [WsLoc] # omittedField :: Maybe WsLoc #
ToJSON WsLoc # |
Instance details Defined in Floskell.Config Methods toJSON :: WsLoc -> Value # toEncoding :: WsLoc -> Encoding # toJSONList :: [WsLoc] -> Value # toEncodingList :: [WsLoc] -> Encoding # omitField :: WsLoc -> Bool #
Bounded WsLoc # |
Instance details Defined in Floskell.Config Methods minBound :: WsLoc maxBound :: WsLoc
Enum WsLoc # |
Instance details Defined in Floskell.Config Methods succ :: WsLoc -> WsLoc pred :: WsLoc -> WsLoc toEnum :: Int -> WsLoc fromEnum :: WsLoc -> Int enumFrom :: WsLoc -> [WsLoc] enumFromThen :: WsLoc -> WsLoc -> [WsLoc] enumFromTo :: WsLoc -> WsLoc -> [WsLoc] enumFromThenTo :: WsLoc -> WsLoc -> WsLoc -> [WsLoc]
Generic WsLoc # |
Instance details Defined in Floskell.Config Associated Types type Rep WsLoc :: Type -> Type Methods from :: WsLoc -> Rep WsLoc x to :: Rep WsLoc x -> WsLoc
Show WsLoc # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> WsLoc -> ShowS show :: WsLoc -> String showList :: [WsLoc] -> ShowS
Eq WsLoc # |
Instance details Defined in Floskell.Config Methods (==) :: WsLoc -> WsLoc -> Bool (/=) :: WsLoc -> WsLoc -> Bool
Ord WsLoc # |
Instance details Defined in Floskell.Config Methods compare :: WsLoc -> WsLoc -> Ordering (<) :: WsLoc -> WsLoc -> Bool (<=) :: WsLoc -> WsLoc -> Bool (>) :: WsLoc -> WsLoc -> Bool (>=) :: WsLoc -> WsLoc -> Bool max :: WsLoc -> WsLoc -> WsLoc min :: WsLoc -> WsLoc -> WsLoc
type Rep WsLoc # |

Instance details

Defined in Floskell.Config

type Rep WsLoc = D1 ('MetaData "WsLoc" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) ((C1 ('MetaCons "WsNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WsBefore" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "WsAfter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WsBoth" 'PrefixI 'False) (U1 :: Type -> Type)))

data Whitespace #

Constructors

Whitespace |

Fields

- wsSpaces :: !WsLoc
- wsLinebreaks :: !WsLoc
- wsForceLinebreak :: !Bool

#### Instances

Instances details

FromJSON Whitespace # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser Whitespace # parseJSONList :: Value -> Parser [Whitespace] # omittedField :: Maybe Whitespace #
ToJSON Whitespace # |
Instance details Defined in Floskell.Config Methods toJSON :: Whitespace -> Value # toEncoding :: Whitespace -> Encoding # toJSONList :: [Whitespace] -> Value # toEncodingList :: [Whitespace] -> Encoding # omitField :: Whitespace -> Bool #
Generic Whitespace # |
Instance details Defined in Floskell.Config Associated Types type Rep Whitespace :: Type -> Type Methods from :: Whitespace -> Rep Whitespace x to :: Rep Whitespace x -> Whitespace
Show Whitespace # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> Whitespace -> ShowS show :: Whitespace -> String showList :: [Whitespace] -> ShowS
type Rep Whitespace # |

Instance details

Defined in Floskell.Config

type Rep Whitespace = D1 ('MetaData "Whitespace" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "Whitespace" 'PrefixI 'True) (S1 ('MetaSel ('Just "wsSpaces") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WsLoc) :*: (S1 ('MetaSel ('Just "wsLinebreaks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WsLoc) :*: S1 ('MetaSel ('Just "wsForceLinebreak") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))

data Layout #

Constructors

Flex |
Vertical |
TryOneline |

#### Instances

Instances details

FromJSON Layout # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser Layout # parseJSONList :: Value -> Parser [Layout] # omittedField :: Maybe Layout #
ToJSON Layout # |
Instance details Defined in Floskell.Config Methods toJSON :: Layout -> Value # toEncoding :: Layout -> Encoding # toJSONList :: [Layout] -> Value # toEncodingList :: [Layout] -> Encoding # omitField :: Layout -> Bool #
Bounded Layout # |
Instance details Defined in Floskell.Config Methods minBound :: Layout maxBound :: Layout
Enum Layout # |
Instance details Defined in Floskell.Config Methods succ :: Layout -> Layout pred :: Layout -> Layout toEnum :: Int -> Layout fromEnum :: Layout -> Int enumFrom :: Layout -> [Layout] enumFromThen :: Layout -> Layout -> [Layout] enumFromTo :: Layout -> Layout -> [Layout] enumFromThenTo :: Layout -> Layout -> Layout -> [Layout]
Generic Layout # |
Instance details Defined in Floskell.Config Associated Types type Rep Layout :: Type -> Type Methods from :: Layout -> Rep Layout x to :: Rep Layout x -> Layout
Show Layout # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> Layout -> ShowS show :: Layout -> String showList :: [Layout] -> ShowS
Eq Layout # |
Instance details Defined in Floskell.Config Methods (==) :: Layout -> Layout -> Bool (/=) :: Layout -> Layout -> Bool
Ord Layout # |
Instance details Defined in Floskell.Config Methods compare :: Layout -> Layout -> Ordering (<) :: Layout -> Layout -> Bool (<=) :: Layout -> Layout -> Bool (>) :: Layout -> Layout -> Bool (>=) :: Layout -> Layout -> Bool max :: Layout -> Layout -> Layout min :: Layout -> Layout -> Layout
type Rep Layout # |
Instance details Defined in Floskell.Config type Rep Layout = D1 ('MetaData "Layout" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "Flex" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Vertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TryOneline" 'PrefixI 'False) (U1 :: Type -> Type)))

data ConfigMapKey #

Constructors

ConfigMapKey !(Maybe Text) !(Maybe LayoutContext) |

#### Instances

Instances details

Show ConfigMapKey # |
Instance details Defined in Floskell.Config Methods showsPrec :: Int -> ConfigMapKey -> ShowS show :: ConfigMapKey -> String showList :: [ConfigMapKey] -> ShowS
Eq ConfigMapKey # |
Instance details Defined in Floskell.Config Methods (==) :: ConfigMapKey -> ConfigMapKey -> Bool (/=) :: ConfigMapKey -> ConfigMapKey -> Bool
Ord ConfigMapKey # |
Instance details Defined in Floskell.Config Methods compare :: ConfigMapKey -> ConfigMapKey -> Ordering (<) :: ConfigMapKey -> ConfigMapKey -> Bool (<=) :: ConfigMapKey -> ConfigMapKey -> Bool (>) :: ConfigMapKey -> ConfigMapKey -> Bool (>=) :: ConfigMapKey -> ConfigMapKey -> Bool max :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey min :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey

data ConfigMap a #

Constructors

ConfigMap |

Fields

- cfgMapDefault :: !a
- cfgMapOverrides :: !(Map ConfigMapKey a)

#### Instances

Instances details

FromJSON a => FromJSON (ConfigMap a) # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser (ConfigMap a) # parseJSONList :: Value -> Parser [ConfigMap a] # omittedField :: Maybe (ConfigMap a) #
ToJSON a => ToJSON (ConfigMap a) # |
Instance details Defined in Floskell.Config Methods toJSON :: ConfigMap a -> Value # toEncoding :: ConfigMap a -> Encoding # toJSONList :: [ConfigMap a] -> Value # toEncodingList :: [ConfigMap a] -> Encoding # omitField :: ConfigMap a -> Bool #
Generic (ConfigMap a) # |
Instance details Defined in Floskell.Config Associated Types type Rep (ConfigMap a) :: Type -> Type Methods from :: ConfigMap a -> Rep (ConfigMap a) x to :: Rep (ConfigMap a) x -> ConfigMap a
type Rep (ConfigMap a) # |

Instance details

Defined in Floskell.Config

type Rep (ConfigMap a) = D1 ('MetaData "ConfigMap" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "ConfigMap" 'PrefixI 'True) (S1 ('MetaSel ('Just "cfgMapDefault") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "cfgMapOverrides") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ConfigMapKey a))))

data PenaltyConfig #

Constructors

PenaltyConfig |

Fields

- penaltyMaxLineLength :: !Int
- penaltyLinebreak :: !Int
- penaltyIndent :: !Int
- penaltyOverfull :: !Int
- penaltyOverfullOnce :: !Int

#### Instances

Instances details

FromJSON PenaltyConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser PenaltyConfig # parseJSONList :: Value -> Parser [PenaltyConfig] # omittedField :: Maybe PenaltyConfig #
ToJSON PenaltyConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: PenaltyConfig -> Value # toEncoding :: PenaltyConfig -> Encoding # toJSONList :: [PenaltyConfig] -> Value # toEncodingList :: [PenaltyConfig] -> Encoding # omitField :: PenaltyConfig -> Bool #
Generic PenaltyConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep PenaltyConfig :: Type -> Type Methods from :: PenaltyConfig -> Rep PenaltyConfig x to :: Rep PenaltyConfig x -> PenaltyConfig
Default PenaltyConfig # |
Instance details Defined in Floskell.Config Methods def :: PenaltyConfig #
type Rep PenaltyConfig # |

Instance details

Defined in Floskell.Config

type Rep PenaltyConfig = D1 ('MetaData "PenaltyConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "PenaltyConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "penaltyMaxLineLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "penaltyLinebreak") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "penaltyIndent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "penaltyOverfull") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "penaltyOverfullOnce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)))))

data AlignConfig #

Constructors

AlignConfig |

Fields

- cfgAlignLimits :: !(Int, Int)
- cfgAlignCase :: !Bool
- cfgAlignClass :: !Bool
- cfgAlignImportModule :: !Bool
- cfgAlignImportSpec :: !Bool
- cfgAlignLetBinds :: !Bool
- cfgAlignMatches :: !Bool
- cfgAlignRecordFields :: !Bool
- cfgAlignWhere :: !Bool

#### Instances

Instances details

FromJSON AlignConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser AlignConfig # parseJSONList :: Value -> Parser [AlignConfig] # omittedField :: Maybe AlignConfig #
ToJSON AlignConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: AlignConfig -> Value # toEncoding :: AlignConfig -> Encoding # toJSONList :: [AlignConfig] -> Value # toEncodingList :: [AlignConfig] -> Encoding # omitField :: AlignConfig -> Bool #
Generic AlignConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep AlignConfig :: Type -> Type Methods from :: AlignConfig -> Rep AlignConfig x to :: Rep AlignConfig x -> AlignConfig
Default AlignConfig # |
Instance details Defined in Floskell.Config Methods def :: AlignConfig #
type Rep AlignConfig # |

Instance details

Defined in Floskell.Config

type Rep AlignConfig = D1 ('MetaData "AlignConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "AlignConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgAlignLimits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Int, Int)) :*: S1 ('MetaSel ('Just "cfgAlignCase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgAlignClass") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignImportModule") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "cfgAlignImportSpec") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignLetBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgAlignMatches") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "cfgAlignRecordFields") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignWhere") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))))

data IndentConfig #

Constructors

IndentConfig |

Fields

- cfgIndentOnside :: !Int
- cfgIndentDeriving :: !Int
- cfgIndentWhere :: !Int
- cfgIndentApp :: !Indent
- cfgIndentCase :: !Indent
- cfgIndentClass :: !Indent
- cfgIndentDo :: !Indent
- cfgIndentExportSpecList :: !Indent
- cfgIndentIf :: !Indent
- cfgIndentImportSpecList :: !Indent
- cfgIndentLet :: !Indent
- cfgIndentLetBinds :: !Indent
- cfgIndentLetIn :: !Indent
- cfgIndentMultiIf :: !Indent
- cfgIndentTypesig :: !Indent
- cfgIndentWhereBinds :: !Indent

#### Instances

Instances details

FromJSON IndentConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser IndentConfig # parseJSONList :: Value -> Parser [IndentConfig] # omittedField :: Maybe IndentConfig #
ToJSON IndentConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: IndentConfig -> Value # toEncoding :: IndentConfig -> Encoding # toJSONList :: [IndentConfig] -> Value # toEncodingList :: [IndentConfig] -> Encoding # omitField :: IndentConfig -> Bool #
Generic IndentConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep IndentConfig :: Type -> Type Methods from :: IndentConfig -> Rep IndentConfig x to :: Rep IndentConfig x -> IndentConfig
Default IndentConfig # |
Instance details Defined in Floskell.Config Methods def :: IndentConfig #
type Rep IndentConfig # |

Instance details

Defined in Floskell.Config

type Rep IndentConfig = D1 ('MetaData "IndentConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "IndentConfig" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "cfgIndentOnside") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "cfgIndentDeriving") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "cfgIndentWhere") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "cfgIndentApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent))) :*: ((S1 ('MetaSel ('Just "cfgIndentCase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentClass") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentDo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentExportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)))) :*: (((S1 ('MetaSel ('Just "cfgIndentIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentImportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentLet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentLetBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent))) :*: ((S1 ('MetaSel ('Just "cfgIndentLetIn") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentMultiIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentTypesig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentWhereBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent))))))

data LayoutConfig #

Constructors

LayoutConfig |

Fields

- cfgLayoutApp :: !Layout
- cfgLayoutConDecls :: !Layout
- cfgLayoutDeclaration :: !Layout
- cfgLayoutExportSpecList :: !Layout
- cfgLayoutIf :: !Layout
- cfgLayoutImportSpecList :: !Layout
- cfgLayoutInfixApp :: !Layout
- cfgLayoutLet :: !Layout
- cfgLayoutListComp :: !Layout
- cfgLayoutRecord :: !Layout
- cfgLayoutType :: !Layout

#### Instances

Instances details

FromJSON LayoutConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser LayoutConfig # parseJSONList :: Value -> Parser [LayoutConfig] # omittedField :: Maybe LayoutConfig #
ToJSON LayoutConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: LayoutConfig -> Value # toEncoding :: LayoutConfig -> Encoding # toJSONList :: [LayoutConfig] -> Value # toEncodingList :: [LayoutConfig] -> Encoding # omitField :: LayoutConfig -> Bool #
Generic LayoutConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep LayoutConfig :: Type -> Type Methods from :: LayoutConfig -> Rep LayoutConfig x to :: Rep LayoutConfig x -> LayoutConfig
Default LayoutConfig # |
Instance details Defined in Floskell.Config Methods def :: LayoutConfig #
type Rep LayoutConfig # |

Instance details

Defined in Floskell.Config

type Rep LayoutConfig = D1 ('MetaData "LayoutConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "LayoutConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgLayoutApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutConDecls") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout)) :*: (S1 ('MetaSel ('Just "cfgLayoutDeclaration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutExportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout)))) :*: ((S1 ('MetaSel ('Just "cfgLayoutImportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutInfixApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutLet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout))) :*: (S1 ('MetaSel ('Just "cfgLayoutListComp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutRecord") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout))))))

newtype OpConfig #

Constructors

OpConfig |

Fields

- unOpConfig :: ConfigMap Whitespace

#### Instances

Instances details

FromJSON OpConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser OpConfig # parseJSONList :: Value -> Parser [OpConfig] # omittedField :: Maybe OpConfig #
ToJSON OpConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: OpConfig -> Value # toEncoding :: OpConfig -> Encoding # toJSONList :: [OpConfig] -> Value # toEncodingList :: [OpConfig] -> Encoding # omitField :: OpConfig -> Bool #
Generic OpConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep OpConfig :: Type -> Type Methods from :: OpConfig -> Rep OpConfig x to :: Rep OpConfig x -> OpConfig
Default OpConfig # |
Instance details Defined in Floskell.Config Methods def :: OpConfig #
type Rep OpConfig # |
Instance details Defined in Floskell.Config type Rep OpConfig = D1 ('MetaData "OpConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'True) (C1 ('MetaCons "OpConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unOpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace))))

newtype GroupConfig #

Constructors

GroupConfig |

Fields

- unGroupConfig :: ConfigMap Whitespace

#### Instances

Instances details

FromJSON GroupConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser GroupConfig # parseJSONList :: Value -> Parser [GroupConfig] # omittedField :: Maybe GroupConfig #
ToJSON GroupConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: GroupConfig -> Value # toEncoding :: GroupConfig -> Encoding # toJSONList :: [GroupConfig] -> Value # toEncodingList :: [GroupConfig] -> Encoding # omitField :: GroupConfig -> Bool #
Generic GroupConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep GroupConfig :: Type -> Type Methods from :: GroupConfig -> Rep GroupConfig x to :: Rep GroupConfig x -> GroupConfig
Default GroupConfig # |
Instance details Defined in Floskell.Config Methods def :: GroupConfig #
type Rep GroupConfig # |
Instance details Defined in Floskell.Config type Rep GroupConfig = D1 ('MetaData "GroupConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'True) (C1 ('MetaCons "GroupConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGroupConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace))))

data ImportsGroupOrder #

Constructors

ImportsGroupKeep |
ImportsGroupSorted |
ImportsGroupGrouped |

#### Instances

Instances details

FromJSON ImportsGroupOrder # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser ImportsGroupOrder # parseJSONList :: Value -> Parser [ImportsGroupOrder] # omittedField :: Maybe ImportsGroupOrder #
ToJSON ImportsGroupOrder # |
Instance details Defined in Floskell.Config Methods toJSON :: ImportsGroupOrder -> Value # toEncoding :: ImportsGroupOrder -> Encoding # toJSONList :: [ImportsGroupOrder] -> Value # toEncodingList :: [ImportsGroupOrder] -> Encoding # omitField :: ImportsGroupOrder -> Bool #
Generic ImportsGroupOrder # |
Instance details Defined in Floskell.Config Associated Types type Rep ImportsGroupOrder :: Type -> Type Methods from :: ImportsGroupOrder -> Rep ImportsGroupOrder x to :: Rep ImportsGroupOrder x -> ImportsGroupOrder
type Rep ImportsGroupOrder # |

Instance details

Defined in Floskell.Config

type Rep ImportsGroupOrder = D1 ('MetaData "ImportsGroupOrder" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "ImportsGroupKeep" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ImportsGroupSorted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ImportsGroupGrouped" 'PrefixI 'False) (U1 :: Type -> Type)))

data ImportsGroup #

Constructors

ImportsGroup |

Fields

- importsPrefixes :: ![String]
- importsOrder :: !ImportsGroupOrder

#### Instances

Instances details

FromJSON ImportsGroup # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser ImportsGroup # parseJSONList :: Value -> Parser [ImportsGroup] # omittedField :: Maybe ImportsGroup #
ToJSON ImportsGroup # |
Instance details Defined in Floskell.Config Methods toJSON :: ImportsGroup -> Value # toEncoding :: ImportsGroup -> Encoding # toJSONList :: [ImportsGroup] -> Value # toEncodingList :: [ImportsGroup] -> Encoding # omitField :: ImportsGroup -> Bool #
Generic ImportsGroup # |
Instance details Defined in Floskell.Config Associated Types type Rep ImportsGroup :: Type -> Type Methods from :: ImportsGroup -> Rep ImportsGroup x to :: Rep ImportsGroup x -> ImportsGroup
type Rep ImportsGroup # |

Instance details

Defined in Floskell.Config

type Rep ImportsGroup = D1 ('MetaData "ImportsGroup" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "ImportsGroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "importsPrefixes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: S1 ('MetaSel ('Just "importsOrder") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ImportsGroupOrder)))

data SortImportsRule #

Constructors

NoImportSort |
SortImportsByPrefix |
SortImportsByGroups ![ImportsGroup] |

#### Instances

Instances details

FromJSON SortImportsRule # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser SortImportsRule # parseJSONList :: Value -> Parser [SortImportsRule] # omittedField :: Maybe SortImportsRule #
ToJSON SortImportsRule # |
Instance details Defined in Floskell.Config Methods toJSON :: SortImportsRule -> Value # toEncoding :: SortImportsRule -> Encoding # toJSONList :: [SortImportsRule] -> Value # toEncodingList :: [SortImportsRule] -> Encoding # omitField :: SortImportsRule -> Bool #

data DeclarationConstruct #

Constructors

DeclModule |
DeclClass |
DeclInstance |
DeclWhere |

#### Instances

Instances details

FromJSON DeclarationConstruct # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser DeclarationConstruct # parseJSONList :: Value -> Parser [DeclarationConstruct] # omittedField :: Maybe DeclarationConstruct #
ToJSON DeclarationConstruct # |
Instance details Defined in Floskell.Config Methods toJSON :: DeclarationConstruct -> Value # toEncoding :: DeclarationConstruct -> Encoding # toJSONList :: [DeclarationConstruct] -> Value # toEncodingList :: [DeclarationConstruct] -> Encoding # omitField :: DeclarationConstruct -> Bool #
Generic DeclarationConstruct # |
Instance details Defined in Floskell.Config Associated Types type Rep DeclarationConstruct :: Type -> Type Methods from :: DeclarationConstruct -> Rep DeclarationConstruct x to :: Rep DeclarationConstruct x -> DeclarationConstruct
Eq DeclarationConstruct # |
Instance details Defined in Floskell.Config Methods (==) :: DeclarationConstruct -> DeclarationConstruct -> Bool (/=) :: DeclarationConstruct -> DeclarationConstruct -> Bool
Ord DeclarationConstruct # |

Instance details

Defined in Floskell.Config

Methods

compare :: DeclarationConstruct -> DeclarationConstruct -> Ordering

(<) :: DeclarationConstruct -> DeclarationConstruct -> Bool

(<=) :: DeclarationConstruct -> DeclarationConstruct -> Bool

(>) :: DeclarationConstruct -> DeclarationConstruct -> Bool

(>=) :: DeclarationConstruct -> DeclarationConstruct -> Bool

max :: DeclarationConstruct -> DeclarationConstruct -> DeclarationConstruct

min :: DeclarationConstruct -> DeclarationConstruct -> DeclarationConstruct

type Rep DeclarationConstruct # |

Instance details

Defined in Floskell.Config

type Rep DeclarationConstruct = D1 ('MetaData "DeclarationConstruct" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) ((C1 ('MetaCons "DeclModule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeclClass" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DeclInstance" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeclWhere" 'PrefixI 'False) (U1 :: Type -> Type)))

data OptionConfig #

Constructors

OptionConfig |

Fields

- cfgOptionSortPragmas :: !Bool
- cfgOptionSplitLanguagePragmas :: !Bool
- cfgOptionSortImports :: !SortImportsRule
- cfgOptionSortImportLists :: !Bool
- cfgOptionAlignSumTypeDecl :: !Bool
- cfgOptionFlexibleOneline :: !Bool
- cfgOptionPreserveVerticalSpace :: !Bool
- cfgOptionDeclNoBlankLines :: !(Set DeclarationConstruct)
- cfgOptionAlignLetBindsAndInExpr :: !Bool

#### Instances

Instances details

FromJSON OptionConfig # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser OptionConfig # parseJSONList :: Value -> Parser [OptionConfig] # omittedField :: Maybe OptionConfig #
ToJSON OptionConfig # |
Instance details Defined in Floskell.Config Methods toJSON :: OptionConfig -> Value # toEncoding :: OptionConfig -> Encoding # toJSONList :: [OptionConfig] -> Value # toEncodingList :: [OptionConfig] -> Encoding # omitField :: OptionConfig -> Bool #
Generic OptionConfig # |
Instance details Defined in Floskell.Config Associated Types type Rep OptionConfig :: Type -> Type Methods from :: OptionConfig -> Rep OptionConfig x to :: Rep OptionConfig x -> OptionConfig
Default OptionConfig # |
Instance details Defined in Floskell.Config Methods def :: OptionConfig #
type Rep OptionConfig # |

Instance details

Defined in Floskell.Config

type Rep OptionConfig = D1 ('MetaData "OptionConfig" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "OptionConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgOptionSortPragmas") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgOptionSplitLanguagePragmas") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgOptionSortImports") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SortImportsRule) :*: S1 ('MetaSel ('Just "cfgOptionSortImportLists") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "cfgOptionAlignSumTypeDecl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgOptionFlexibleOneline") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgOptionPreserveVerticalSpace") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "cfgOptionDeclNoBlankLines") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set DeclarationConstruct)) :*: S1 ('MetaSel ('Just "cfgOptionAlignLetBindsAndInExpr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))))

data Config #

Constructors

Config |

Fields

- cfgPenalty :: !PenaltyConfig
- cfgAlign :: !AlignConfig
- cfgIndent :: !IndentConfig
- cfgLayout :: !LayoutConfig
- cfgOp :: !OpConfig
- cfgGroup :: !GroupConfig
- cfgOptions :: !OptionConfig

#### Instances

Instances details

FromJSON Config # |
Instance details Defined in Floskell.Config Methods parseJSON :: Value -> Parser Config # parseJSONList :: Value -> Parser [Config] # omittedField :: Maybe Config #
ToJSON Config # |
Instance details Defined in Floskell.Config Methods toJSON :: Config -> Value # toEncoding :: Config -> Encoding # toJSONList :: [Config] -> Value # toEncodingList :: [Config] -> Encoding # omitField :: Config -> Bool #
Generic Config # |
Instance details Defined in Floskell.Config Associated Types type Rep Config :: Type -> Type Methods from :: Config -> Rep Config x to :: Rep Config x -> Config
Default Config # |
Instance details Defined in Floskell.Config Methods def :: Config #
type Rep Config # |

Instance details

Defined in Floskell.Config

type Rep Config = D1 ('MetaData "Config" "Floskell.Config" "floskell-0.11.0-FcCpf6QupMgIc5qNTp9SwN" 'False) (C1 ('MetaCons "Config" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cfgPenalty") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PenaltyConfig) :*: (S1 ('MetaSel ('Just "cfgAlign") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AlignConfig) :*: S1 ('MetaSel ('Just "cfgIndent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IndentConfig))) :*: ((S1 ('MetaSel ('Just "cfgLayout") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LayoutConfig) :*: S1 ('MetaSel ('Just "cfgOp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpConfig)) :*: (S1 ('MetaSel ('Just "cfgGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GroupConfig) :*: S1 ('MetaSel ('Just "cfgOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OptionConfig)))))

defaultConfig :: Config #

safeConfig :: Config -> Config #

cfgMapFind :: LayoutContext -> Text -> ConfigMap a -> a #

cfgOpWs :: LayoutContext -> Text -> OpConfig -> Whitespace #

cfgGroupWs :: LayoutContext -> Text -> GroupConfig -> Whitespace #

inWs :: Location -> WsLoc -> Bool #

wsSpace :: Location -> Whitespace -> Bool #

wsLinebreak :: Location -> Whitespace -> Bool #