protolude-0.1.10: A sensible set of defaults for writing custom Preludes.

Safe HaskellTrustworthy
LanguageHaskell2010

Protolude

Documentation

module Base

identity :: a -> a Source #

map :: Functor f => (a -> b) -> f a -> f b Source #

(&) :: a -> (a -> b) -> b infixl 1 Source #

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

unsnoc :: [x] -> Maybe ([x], x) Source #

applyN :: Int -> (a -> a) -> a -> a Source #

print :: (MonadIO m, Show a) => a -> m () Source #

throwIO :: (MonadIO m, Exception e) => e -> m a Source #

throwTo :: (MonadIO m, Exception e) => ThreadId -> e -> m () Source #

foreach :: Functor f => f a -> (a -> b) -> f b Source #

show :: (Show a, StringConv String b) => a -> b Source #

pass :: Applicative f => f () Source #

guarded :: Alternative f => (a -> Bool) -> a -> f a Source #

guardedA :: (Functor f, Alternative t) => (a -> f Bool) -> a -> f (t a) Source #