brittany-0.12.0.0: Haskell source code formatter

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Brittany.Internal.PreludeUtils

Contents

Documentation

traceFunctionWith :: String -> (a -> String) -> (b -> String) -> (a -> b) -> a -> b Source #

(<&!>) :: Monad m => m a -> (a -> b) -> m b Source #

printErr :: Show a => a -> IO () Source #

errorIf :: Bool -> a -> a Source #

(<&>) :: Functor f => f a -> (a -> b) -> f b infixl 4 Source #

(.>) :: (a -> b) -> (b -> c) -> a -> c infixl 9 Source #

evaluateDeep :: NFData a => a -> IO a Source #

Orphan instances

Monad Maybe Source # 
Instance details

Methods

(>>=) :: Maybe a -> (a -> Maybe b) -> Maybe b #

(>>) :: Maybe a -> Maybe b -> Maybe b #

return :: a -> Maybe a #

fail :: String -> Maybe a #

Applicative Maybe Source # 
Instance details

Methods

pure :: a -> Maybe a #

(<*>) :: Maybe (a -> b) -> Maybe a -> Maybe b #

liftA2 :: (a -> b -> c) -> Maybe a -> Maybe b -> Maybe c #

(*>) :: Maybe a -> Maybe b -> Maybe b #

(<*) :: Maybe a -> Maybe b -> Maybe a #

Alternative Maybe Source # 
Instance details

Methods

empty :: Maybe a #

(<|>) :: Maybe a -> Maybe a -> Maybe a #

some :: Maybe a -> Maybe [a] #

many :: Maybe a -> Maybe [a] #