brittany-0.12.0.0: Haskell source code formatter

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Brittany.Internal.Types

Documentation

data PerItemConfig Source #

Instances
Data PerItemConfig Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PerItemConfig -> c PerItemConfig #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PerItemConfig #

toConstr :: PerItemConfig -> Constr #

dataTypeOf :: PerItemConfig -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PerItemConfig) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PerItemConfig) #

gmapT :: (forall b. Data b => b -> b) -> PerItemConfig -> PerItemConfig #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PerItemConfig -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PerItemConfig -> r #

gmapQ :: (forall d. Data d => d -> u) -> PerItemConfig -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PerItemConfig -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PerItemConfig -> m PerItemConfig #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PerItemConfig -> m PerItemConfig #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PerItemConfig -> m PerItemConfig #

data LayoutState Source #

Constructors

LayoutState 

Fields

data BrittanyError Source #

Constructors

ErrorInput String

parsing failed

ErrorUnusedComment String

internal error: some comment went missing

ErrorMacroConfig String String

in-source config string parsing error; first argument is the parser output and second the corresponding, ill-formed input.

LayoutWarning String

some warning

Data ast => ErrorUnknownNode String (GenLocated SrcSpan ast)

internal error: pretty-printing is not implemented for type of node in the syntax-tree

ErrorOutputCheck

checking the output for syntactic validity failed

data ColSig Source #

Instances
Eq ColSig Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

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

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

Data ColSig Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColSig -> c ColSig #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColSig #

toConstr :: ColSig -> Constr #

dataTypeOf :: ColSig -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColSig) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColSig) #

gmapT :: (forall b. Data b => b -> b) -> ColSig -> ColSig #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColSig -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColSig -> r #

gmapQ :: (forall d. Data d => d -> u) -> ColSig -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ColSig -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig #

Ord ColSig Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Show ColSig Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

data BrIndent Source #

Instances
Eq BrIndent Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Data BrIndent Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BrIndent -> c BrIndent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BrIndent #

toConstr :: BrIndent -> Constr #

dataTypeOf :: BrIndent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BrIndent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BrIndent) #

gmapT :: (forall b. Data b => b -> b) -> BrIndent -> BrIndent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BrIndent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BrIndent -> r #

gmapQ :: (forall d. Data d => d -> u) -> BrIndent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BrIndent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent #

Ord BrIndent Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Show BrIndent Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

type ToBriDoc (sym :: * -> *) = Located (sym GhcPs) -> ToBriDocM BriDocNumbered Source #

type ToBriDocC sym c = Located sym -> ToBriDocM c Source #

data BriDoc Source #

Instances
Eq BriDoc Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

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

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

Data BriDoc Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BriDoc -> c BriDoc #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BriDoc #

toConstr :: BriDoc -> Constr #

dataTypeOf :: BriDoc -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BriDoc) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BriDoc) #

gmapT :: (forall b. Data b => b -> b) -> BriDoc -> BriDoc #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BriDoc -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BriDoc -> r #

gmapQ :: (forall d. Data d => d -> u) -> BriDoc -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BriDoc -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc #

Ord BriDoc Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Uniplate BriDoc Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

uniplate :: BriDoc -> (Str BriDoc, Str BriDoc -> BriDoc) #

descend :: (BriDoc -> BriDoc) -> BriDoc -> BriDoc #

descendM :: Monad m => (BriDoc -> m BriDoc) -> BriDoc -> m BriDoc #

data BriDocF f Source #

Instances
Data (BriDocF ((,) Int)) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BriDocF ((,) Int) -> c (BriDocF ((,) Int)) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BriDocF ((,) Int)) #

toConstr :: BriDocF ((,) Int) -> Constr #

dataTypeOf :: BriDocF ((,) Int) -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BriDocF ((,) Int))) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BriDocF ((,) Int))) #

gmapT :: (forall b. Data b => b -> b) -> BriDocF ((,) Int) -> BriDocF ((,) Int) #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BriDocF ((,) Int) -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BriDocF ((,) Int) -> r #

gmapQ :: (forall d. Data d => d -> u) -> BriDocF ((,) Int) -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BriDocF ((,) Int) -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) #

newtype LineModeValidity a Source #

Constructors

LineModeValidity (Maybe a) 
Instances
Monad LineModeValidity Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Functor LineModeValidity Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Methods

fmap :: (a -> b) -> LineModeValidity a -> LineModeValidity b #

(<$) :: a -> LineModeValidity b -> LineModeValidity a #

Applicative LineModeValidity Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Alternative LineModeValidity Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

Show a => Show (LineModeValidity a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Types

pattern LineModeValid :: forall t. t -> LineModeValidity t Source #

pattern LineModeInvalid :: forall t. LineModeValidity t Source #