Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
- module Base
- class Buildable p
- identity :: a -> a
- map :: Functor f => (a -> b) -> f a -> f b
- uncons :: [a] -> Maybe (a, [a])
- unsnoc :: [x] -> Maybe ([x], x)
- applyN :: Int -> (a -> a) -> a -> a
- pretty :: Buildable a => a -> Text
- prettyL :: Buildable a => a -> LText
- print :: (MonadIO m, Show a) => a -> m ()
- foreach :: Functor f => f a -> (a -> b) -> f b
- guarded :: Alternative f => (a -> Bool) -> a -> f a
- guardedA :: (Functor f, Alternative t) => (a -> f Bool) -> a -> f (t a)
- show :: (Show a, IsString b) => a -> b
- type LText = Text
- type LByteString = ByteString
Reexports from base and from modules in this repo
module Base
Useful classes
The class of types that can be rendered to a Builder
.
Useful standard unclassifed functions
pretty :: Buildable a => a -> Text Source #
Functions to show pretty output for buildable data types.
guarded :: Alternative f => (a -> Bool) -> a -> f a Source #
Convenient type aliases
type LByteString = ByteString Source #