brittany-0.12.0.0: Haskell source code formatter

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Brittany.Internal.Utils

Synopsis

Documentation

mModify :: MonadMultiState s m => (s -> s) -> m () Source #

astToDoc :: Data ast => ast -> Doc Source #

newtype Max a Source #

Constructors

Max 

Fields

Instances
Bounded a => Bounded (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

minBound :: Max a #

maxBound :: Max a #

Eq a => Eq (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

(==) :: Max a -> Max a -> Bool #

(/=) :: Max a -> Max a -> Bool #

Num a => Num (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

(+) :: Max a -> Max a -> Max a #

(-) :: Max a -> Max a -> Max a #

(*) :: Max a -> Max a -> Max a #

negate :: Max a -> Max a #

abs :: Max a -> Max a #

signum :: Max a -> Max a #

fromInteger :: Integer -> Max a #

Ord a => Ord (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

compare :: Max a -> Max a -> Ordering #

(<) :: Max a -> Max a -> Bool #

(<=) :: Max a -> Max a -> Bool #

(>) :: Max a -> Max a -> Bool #

(>=) :: Max a -> Max a -> Bool #

max :: Max a -> Max a -> Max a #

min :: Max a -> Max a -> Max a #

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

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

showsPrec :: Int -> Max a -> ShowS #

show :: Max a -> String #

showList :: [Max a] -> ShowS #

(Num a, Ord a) => Semigroup (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

(<>) :: Max a -> Max a -> Max a #

sconcat :: NonEmpty (Max a) -> Max a #

stimes :: Integral b => b -> Max a -> Max a #

(Num a, Ord a) => Monoid (Max a) Source # 
Instance details

Defined in Language.Haskell.Brittany.Internal.Utils

Methods

mempty :: Max a #

mappend :: Max a -> Max a -> Max a #

mconcat :: [Max a] -> Max a #

tellDebugMessShow :: forall a m. (MonadMultiWriter (Seq String) m, Show a) => a -> m () Source #

breakEither :: (a -> Either b c) -> [a] -> ([b], [c]) Source #

spanMaybe :: (a -> Maybe b) -> [a] -> ([b], [a]) Source #

transformUp :: Uniplate on => (on -> on) -> on -> on Source #

transformDownMay :: Uniplate on => (on -> Maybe on) -> on -> on Source #

lines' :: String -> [String] Source #

similar to List.lines, but treating the case of final newline character in such a manner that this function is the inverse of intercalate "n".