Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Indent Source # | |
Ord Indent Source # | |
Show Indent Source # | |
Generic Indent Source # | |
ToJSON Indent Source # | |
Defined in Floskell.Config | |
FromJSON Indent Source # | |
type Rep Indent Source # | |
Defined in Floskell.Config type Rep Indent = D1 ('MetaData "Indent" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" '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 Source #
Instances
Instances
Bounded Location Source # | |
Enum Location Source # | |
Eq Location Source # | |
Ord Location Source # | |
Defined in Floskell.Config | |
Show Location Source # | |
Generic Location Source # | |
type Rep Location Source # | |
Instances
Bounded WsLoc Source # | |
Enum WsLoc Source # | |
Eq WsLoc Source # | |
Ord WsLoc Source # | |
Show WsLoc Source # | |
Generic WsLoc Source # | |
ToJSON WsLoc Source # | |
Defined in Floskell.Config | |
FromJSON WsLoc Source # | |
type Rep WsLoc Source # | |
Defined in Floskell.Config type Rep WsLoc = D1 ('MetaData "WsLoc" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" '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 Source #
Whitespace | |
|
Instances
Instances
Bounded Layout Source # | |
Enum Layout Source # | |
Defined in Floskell.Config | |
Eq Layout Source # | |
Ord Layout Source # | |
Show Layout Source # | |
Generic Layout Source # | |
ToJSON Layout Source # | |
Defined in Floskell.Config | |
FromJSON Layout Source # | |
type Rep Layout Source # | |
Defined in Floskell.Config type Rep Layout = D1 ('MetaData "Layout" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" '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 Source #
Instances
Eq ConfigMapKey Source # | |
Defined in Floskell.Config (==) :: ConfigMapKey -> ConfigMapKey -> Bool # (/=) :: ConfigMapKey -> ConfigMapKey -> Bool # | |
Ord ConfigMapKey Source # | |
Defined in Floskell.Config compare :: ConfigMapKey -> ConfigMapKey -> Ordering # (<) :: ConfigMapKey -> ConfigMapKey -> Bool # (<=) :: ConfigMapKey -> ConfigMapKey -> Bool # (>) :: ConfigMapKey -> ConfigMapKey -> Bool # (>=) :: ConfigMapKey -> ConfigMapKey -> Bool # max :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # min :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # | |
Show ConfigMapKey Source # | |
Defined in Floskell.Config showsPrec :: Int -> ConfigMapKey -> ShowS # show :: ConfigMapKey -> String # showList :: [ConfigMapKey] -> ShowS # |
ConfigMap | |
|
Instances
Generic (ConfigMap a) Source # | |
ToJSON a => ToJSON (ConfigMap a) Source # | |
Defined in Floskell.Config | |
FromJSON a => FromJSON (ConfigMap a) Source # | |
type Rep (ConfigMap a) Source # | |
Defined in Floskell.Config type Rep (ConfigMap a) = D1 ('MetaData "ConfigMap" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" '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 Source #
PenaltyConfig | |
|
Instances
data AlignConfig Source #
AlignConfig | |
|
Instances
data IndentConfig Source #
IndentConfig | |
|
Instances
data LayoutConfig Source #
LayoutConfig | |
|
Instances
Instances
Generic OpConfig Source # | |
ToJSON OpConfig Source # | |
Defined in Floskell.Config | |
FromJSON OpConfig Source # | |
Default OpConfig Source # | |
Defined in Floskell.Config | |
type Rep OpConfig Source # | |
Defined in Floskell.Config type Rep OpConfig = D1 ('MetaData "OpConfig" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" 'True) (C1 ('MetaCons "OpConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unOpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace)))) |
newtype GroupConfig Source #
Instances
Generic GroupConfig Source # | |
Defined in Floskell.Config type Rep GroupConfig :: Type -> Type # from :: GroupConfig -> Rep GroupConfig x # to :: Rep GroupConfig x -> GroupConfig # | |
ToJSON GroupConfig Source # | |
Defined in Floskell.Config toJSON :: GroupConfig -> Value # toEncoding :: GroupConfig -> Encoding # toJSONList :: [GroupConfig] -> Value # toEncodingList :: [GroupConfig] -> Encoding # | |
FromJSON GroupConfig Source # | |
Defined in Floskell.Config parseJSON :: Value -> Parser GroupConfig # parseJSONList :: Value -> Parser [GroupConfig] # | |
Default GroupConfig Source # | |
Defined in Floskell.Config def :: GroupConfig # | |
type Rep GroupConfig Source # | |
Defined in Floskell.Config type Rep GroupConfig = D1 ('MetaData "GroupConfig" "Floskell.Config" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" 'True) (C1 ('MetaCons "GroupConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGroupConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace)))) |
data ImportsGroupOrder Source #
Instances
data ImportsGroup Source #
Instances
data SortImportsRule Source #
Instances
ToJSON SortImportsRule Source # | |
Defined in Floskell.Config toJSON :: SortImportsRule -> Value # toEncoding :: SortImportsRule -> Encoding # toJSONList :: [SortImportsRule] -> Value # toEncodingList :: [SortImportsRule] -> Encoding # | |
FromJSON SortImportsRule Source # | |
Defined in Floskell.Config parseJSON :: Value -> Parser SortImportsRule # parseJSONList :: Value -> Parser [SortImportsRule] # |
data DeclarationConstruct Source #
Instances
data OptionConfig Source #
Instances
Config | |
|
Instances
safeConfig :: Config -> Config Source #
cfgMapFind :: LayoutContext -> ByteString -> ConfigMap a -> a Source #
cfgOpWs :: LayoutContext -> ByteString -> OpConfig -> Whitespace Source #
cfgGroupWs :: LayoutContext -> ByteString -> GroupConfig -> Whitespace Source #
wsLinebreak :: Location -> Whitespace -> Bool Source #