Copyright | 2013 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.
- 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.
MonadQualify ConfigureQuery QueryUnique Source | |
Monad m => Monad (QueryConfig m) Source | |
Functor m => Functor (QueryConfig m) Source | |
Applicative m => Applicative (QueryConfig m) Source | |
MonadQuery (QueryJoin ConfigureQuery) Source | Joinable query instance. |
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.