brittany-0.10.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 # 

Methods

minBound :: Max a #

maxBound :: Max a #

Eq a => Eq (Max a) Source # 

Methods

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

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

Num a => Num (Max a) Source # 

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 # 

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 # 

Methods

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

show :: Max a -> String #

showList :: [Max a] -> ShowS #

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

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".