Copyright | (c) Anton Gushcha 2016-2017 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- showb :: Show a => a -> ByteString
- showt :: Show a => a -> Text
- whenNothing :: Applicative m => Maybe a -> m () -> m ()
- whenJust :: Applicative m => Maybe a -> (a -> m ()) -> m ()
- class ConvertableKey a where
Documentation
showb :: Show a => a -> ByteString Source #
Helper to print a value to lazy bytestring
whenNothing :: Applicative m => Maybe a -> m () -> m () Source #
Do something when first value is Nothing
whenJust :: Applicative m => Maybe a -> (a -> m ()) -> m () Source #
Do something when first value is Just
class ConvertableKey a where Source #
fromKey :: Integral b => a -> b Source #
Shortcut to convert sql key
toKey :: Integral b => b -> a Source #
Shortcut to convert sql key