Copyright | 2013-2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module defines monad transformer which requires query generate configuration.
Synopsis
- data QueryConfig m a
- queryConfig :: Monad m => m a -> QueryConfig m a
- runQueryConfig :: QueryConfig m a -> Config -> m a
- askQueryConfig :: Monad m => QueryConfig m Config
Transformer into query with configuration
data QueryConfig m a Source #
ReaderT
type to require query generate configuration.
Instances
queryConfig :: Monad m => m a -> QueryConfig m a Source #
Lift to QueryConfig
.
runQueryConfig :: QueryConfig m a -> Config -> m a Source #
Run QueryConfig
to expand with configuration
askQueryConfig :: Monad m => QueryConfig m Config Source #
Read configuration.