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.
MonadQualifyUnique ConfigureQuery QueryUnique | Instance to lift from qualified table forms into |
MonadQualify ConfigureQuery Restrict | Instance to lift from qualified table forms into |
MonadQualify ConfigureQuery QueryAggregate | Instance to lift from qualified table forms into |
MonadQualify ConfigureQuery (Assign r) | Instance to lift from qualified table forms into |
MonadQualify ConfigureQuery (Orderings Flat QueryCore) | Instance to lift from qualified table forms into |
Monad m => Monad (QueryConfig m) | |
Functor m => Functor (QueryConfig m) | |
Applicative m => Applicative (QueryConfig m) |
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.