beam-core-0.9.2.1: Type-safe, feature-complete SQL query and manipulation interface for Haskell
Safe Haskell None
Language Haskell2010

Database.Beam

Contents

Description

Top-level Beam module. This module re-exports all the symbols necessary for most common user operations.

The most interesting modules are Database.Beam.Schema and Database.Beam.Query .

This is mainly reference documentation. Most users will want to consult the manual .

Synopsis

Documentation

class ( BeamBackend be, Monad m) => MonadBeam be m | m -> be where Source #

A class that ties together a monad with a particular backend

Provided here is a low-level interface for executing commands. The 'run*' functions are wrapped by the appropriate functions in Query .

This interface is very high-level and isn't meant to expose the full power of the underlying database. Namely, it only supports simple data retrieval strategies. More complicated strategies (for example, Postgres's COPY ) are supported in individual backends. See the documentation of those backends for more details.

Minimal complete definition

runReturningMany

Methods

runReturningMany Source #

Arguments

:: FromBackendRow be x
=> BeamSqlBackendSyntax be

The query to run

-> (m ( Maybe x) -> m a)

Reader action that will be called with a function to fetch the next row

-> m a

Run a query determined by the given syntax, providing an action that will be called to consume the results from the database (if any). The action will get a reader action that can be used to fetch the next row. When this reader action returns Nothing , there are no rows left to consume. When the reader action returns, the database result is freed.

runNoReturn :: BeamSqlBackendSyntax be -> m () Source #

Run the given command and don't consume any results. Useful for DML statements like INSERT, UPDATE, and DELETE, or DDL statements.

runReturningOne :: FromBackendRow be x => BeamSqlBackendSyntax be -> m ( Maybe x) Source #

Run the given command and fetch the unique result. The result is Nothing if either no results are returned or more than one result is returned.

runReturningList :: FromBackendRow be x => BeamSqlBackendSyntax be -> m [x] Source #

Run the given command, collect all the results, and return them as a list. May be more convenient than runReturningMany , but reads the entire result set into memory.

Instances

Instances details
( MonadBeam be m, Monoid s) => MonadBeam be ( WriterT s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

( MonadBeam be m, Monoid s) => MonadBeam be ( WriterT s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

MonadBeam be m => MonadBeam be ( StateT s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

MonadBeam be m => MonadBeam be ( StateT s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

MonadBeam be m => MonadBeam be ( ReaderT r m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

MonadBeam be m => MonadBeam be ( ExceptT e m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

MonadBeam be m => MonadBeam be ( ContT r m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

( MonadBeam be m, Monoid w) => MonadBeam be ( RWST r w s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

( MonadBeam be m, Monoid w) => MonadBeam be ( RWST r w s m) Source #
Instance details

Defined in Database.Beam.Backend.SQL

class BeamBackend be => FromBackendRow be a where Source #

Minimal complete definition

Nothing

Methods

fromBackendRow :: FromBackendRowM be a Source #

Parses a beam row. This should not fail, except in the case of an internal bug in beam deserialization code. If it does fail, this should throw a BeamRowParseError .

valuesNeeded :: Proxy be -> Proxy a -> Int Source #

Instances

Instances details
BeamBackend be => FromBackendRow be () Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

FromBackendRow be x => FromBackendRow be ( SqlSerial x) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( FromBackendRow be x, FromBackendRow be SqlNull ) => FromBackendRow be ( Maybe x) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, Generic (tbl ( Nullable Identity )), Generic (tbl ( Nullable Exposed )), GFromBackendRow be ( Rep (tbl ( Nullable Exposed ))) ( Rep (tbl ( Nullable Identity )))) => FromBackendRow be (tbl ( Nullable Identity )) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, Generic (tbl Identity ), Generic (tbl Exposed ), GFromBackendRow be ( Rep (tbl Exposed )) ( Rep (tbl Identity ))) => FromBackendRow be (tbl Identity ) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b) => FromBackendRow be (a, b) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, KnownNat n, FromBackendRow be a) => FromBackendRow be ( Vector n a) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be t) => FromBackendRow be ( Tagged tag t) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c) => FromBackendRow be (a, b, c) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d) => FromBackendRow be (a, b, c, d) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e) => FromBackendRow be (a, b, c, d, e) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f) => FromBackendRow be (a, b, c, d, e, f) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g) => FromBackendRow be (a, b, c, d, e, f, g) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g) Source #

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g) -> Int Source #

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g, FromBackendRow be h) => FromBackendRow be (a, b, c, d, e, f, g, h) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g, h) Source #

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g, h) -> Int Source #

Re-exports

class Monad m => MonadIO (m :: Type -> Type ) where Source #

Monads in which IO computations may be embedded. Any monad built by applying a sequence of monad transformers to the IO monad will be an instance of this class.

Instances should satisfy the following laws, which state that liftIO is a transformer of monads:

Methods

liftIO :: IO a -> m a Source #

Lift a computation from the IO monad.

Instances

Instances details
MonadIO IO

Since: base-4.9.0.0

Instance details

Defined in Control.Monad.IO.Class

MonadIO Q
Instance details

Defined in Language.Haskell.TH.Syntax

MonadIO m => MonadIO ( MaybeT m)
Instance details

Defined in Control.Monad.Trans.Maybe

MonadIO m => MonadIO ( ListT m)
Instance details

Defined in Control.Monad.Trans.List

MonadIO m => MonadIO ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

MonadIO m => MonadIO ( ExceptT e m)
Instance details

Defined in Control.Monad.Trans.Except

( Functor f, MonadIO m) => MonadIO ( FreeT f m)
Instance details

Defined in Control.Monad.Trans.Free

( Error e, MonadIO m) => MonadIO ( ErrorT e m)
Instance details

Defined in Control.Monad.Trans.Error

MonadIO m => MonadIO ( ReaderT r m)
Instance details

Defined in Control.Monad.Trans.Reader

MonadIO m => MonadIO ( StateT s m)
Instance details

Defined in Control.Monad.Trans.State.Lazy

MonadIO m => MonadIO ( StateT s m)
Instance details

Defined in Control.Monad.Trans.State.Strict

( Monoid w, MonadIO m) => MonadIO ( WriterT w m)
Instance details

Defined in Control.Monad.Trans.Writer.Lazy

( Monoid w, MonadIO m) => MonadIO ( WriterT w m)
Instance details

Defined in Control.Monad.Trans.Writer.Strict

MonadIO m => MonadIO ( ContT r m)
Instance details

Defined in Control.Monad.Trans.Cont

( Monoid w, MonadIO m) => MonadIO ( RWST r w s m)
Instance details

Defined in Control.Monad.Trans.RWS.Lazy

Methods

liftIO :: IO a -> RWST r w s m a Source #

( Monoid w, MonadIO m) => MonadIO ( RWST r w s m)
Instance details

Defined in Control.Monad.Trans.RWS.Strict

Methods

liftIO :: IO a -> RWST r w s m a Source #

class Typeable (a :: k) Source #

The class Typeable allows a concrete representation of a type to be calculated.

Minimal complete definition

typeRep#

class Generic a Source #

Representable types of kind * . This class is derivable in GHC with the DeriveGeneric flag on.

A Generic instance must satisfy the following laws:

from . to ≡ id
to . from ≡ id

Minimal complete definition

from , to

Instances

Instances details
Generic Bool

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep Bool :: Type -> Type Source #

Generic Ordering

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Generic Exp
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Exp :: Type -> Type Source #

Generic Match
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Clause
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Pat
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Pat :: Type -> Type Source #

Generic Type
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Type :: Type -> Type Source #

Generic Dec
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Dec :: Type -> Type Source #

Generic Name
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Name :: Type -> Type Source #

Generic FunDep
Instance details

Defined in Language.Haskell.TH.Syntax

Generic InjectivityAnn
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Overlap
Instance details

Defined in Language.Haskell.TH.Syntax

Generic ()

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep () :: Type -> Type Source #

Methods

from :: () -> Rep () x Source #

to :: Rep () x -> () Source #

Generic Value
Instance details

Defined in Data.Aeson.Types.Internal

Generic Void

Since: base-4.8.0.0

Instance details

Defined in Data.Void

Associated Types

type Rep Void :: Type -> Type Source #

Generic Version

Since: base-4.9.0.0

Instance details

Defined in Data.Version

Generic ExitCode
Instance details

Defined in GHC.IO.Exception

Generic All

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep All :: Type -> Type Source #

Generic Any

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep Any :: Type -> Type Source #

Generic Fixity

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Generic Associativity

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Generic SourceUnpackedness

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Generic SourceStrictness

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Generic DecidedStrictness

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Generic Extension
Instance details

Defined in GHC.LanguageExtensions.Type

Generic ForeignSrcLang
Instance details

Defined in GHC.ForeignSrcLang.Type

Generic URI
Instance details

Defined in Network.URI

Associated Types

type Rep URI :: Type -> Type Source #

Generic URIAuth
Instance details

Defined in Network.URI

Generic Doc
Instance details

Defined in Text.PrettyPrint.HughesPJ

Associated Types

type Rep Doc :: Type -> Type Source #

Generic TextDetails
Instance details

Defined in Text.PrettyPrint.Annotated.HughesPJ

Generic Style
Instance details

Defined in Text.PrettyPrint.Annotated.HughesPJ

Generic Mode
Instance details

Defined in Text.PrettyPrint.Annotated.HughesPJ

Associated Types

type Rep Mode :: Type -> Type Source #

Generic ModName
Instance details

Defined in Language.Haskell.TH.Syntax

Generic PkgName
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Module
Instance details

Defined in Language.Haskell.TH.Syntax

Generic OccName
Instance details

Defined in Language.Haskell.TH.Syntax

Generic NameFlavour
Instance details

Defined in Language.Haskell.TH.Syntax

Generic NameSpace
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Loc
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Loc :: Type -> Type Source #

Generic Info
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Info :: Type -> Type Source #

Generic ModuleInfo
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Fixity
Instance details

Defined in Language.Haskell.TH.Syntax

Generic FixityDirection
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Lit
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Lit :: Type -> Type Source #

Generic Bytes
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Body
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Body :: Type -> Type Source #

Generic Guard
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Stmt
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Stmt :: Type -> Type Source #

Generic Range
Instance details

Defined in Language.Haskell.TH.Syntax

Generic DerivClause
Instance details

Defined in Language.Haskell.TH.Syntax

Generic DerivStrategy
Instance details

Defined in Language.Haskell.TH.Syntax

Generic TypeFamilyHead
Instance details

Defined in Language.Haskell.TH.Syntax

Generic TySynEqn
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Foreign
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Callconv
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Safety
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Pragma
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Inline
Instance details

Defined in Language.Haskell.TH.Syntax

Generic RuleMatch
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Phases
Instance details

Defined in Language.Haskell.TH.Syntax

Generic RuleBndr
Instance details

Defined in Language.Haskell.TH.Syntax

Generic AnnTarget
Instance details

Defined in Language.Haskell.TH.Syntax

Generic SourceUnpackedness
Instance details

Defined in Language.Haskell.TH.Syntax

Generic SourceStrictness
Instance details

Defined in Language.Haskell.TH.Syntax

Generic DecidedStrictness
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Con
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Con :: Type -> Type Source #

Generic Bang
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Bang :: Type -> Type Source #

Generic PatSynDir
Instance details

Defined in Language.Haskell.TH.Syntax

Generic PatSynArgs
Instance details

Defined in Language.Haskell.TH.Syntax

Generic TyVarBndr
Instance details

Defined in Language.Haskell.TH.Syntax

Generic FamilyResultSig
Instance details

Defined in Language.Haskell.TH.Syntax

Generic TyLit
Instance details

Defined in Language.Haskell.TH.Syntax

Generic Role
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Role :: Type -> Type Source #

Generic AnnLookup
Instance details

Defined in Language.Haskell.TH.Syntax

Generic [a]

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep [a] :: Type -> Type Source #

Methods

from :: [a] -> Rep [a] x Source #

to :: Rep [a] x -> [a] Source #

Generic ( Maybe a)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Maybe a) :: Type -> Type Source #

Generic ( Par1 p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Par1 p) :: Type -> Type Source #

Generic ( Solo a)
Instance details

Defined in Data.Tuple.Solo

Associated Types

type Rep ( Solo a) :: Type -> Type Source #

Generic ( Only a)
Instance details

Defined in Data.Tuple.Only

Associated Types

type Rep ( Only a) :: Type -> Type Source #

Generic ( Complex a)

Since: base-4.9.0.0

Instance details

Defined in Data.Complex

Associated Types

type Rep ( Complex a) :: Type -> Type Source #

Generic ( Min a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( Min a) :: Type -> Type Source #

Generic ( Max a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( Max a) :: Type -> Type Source #

Generic ( First a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( First a) :: Type -> Type Source #

Generic ( Last a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( Last a) :: Type -> Type Source #

Generic ( WrappedMonoid m)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Generic ( Option a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( Option a) :: Type -> Type Source #

Generic ( ZipList a)

Since: base-4.7.0.0

Instance details

Defined in Control.Applicative

Associated Types

type Rep ( ZipList a) :: Type -> Type Source #

Generic ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep ( Identity a) :: Type -> Type Source #

Generic ( First a)

Since: base-4.7.0.0

Instance details

Defined in Data.Monoid

Associated Types

type Rep ( First a) :: Type -> Type Source #

Generic ( Last a)

Since: base-4.7.0.0

Instance details

Defined in Data.Monoid

Associated Types

type Rep ( Last a) :: Type -> Type Source #

Generic ( Dual a)

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep ( Dual a) :: Type -> Type Source #

Generic ( Endo a)

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep ( Endo a) :: Type -> Type Source #

Generic ( Sum a)

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep ( Sum a) :: Type -> Type Source #

Generic ( Product a)

Since: base-4.7.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep ( Product a) :: Type -> Type Source #

Generic ( Down a)

Since: base-4.12.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Down a) :: Type -> Type Source #

Generic ( NonEmpty a)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( NonEmpty a) :: Type -> Type Source #

Generic ( Tree a)

Since: containers-0.5.8

Instance details

Defined in Data.Tree

Associated Types

type Rep ( Tree a) :: Type -> Type Source #

Generic ( FingerTree a)

Since: containers-0.6.1

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( FingerTree a) :: Type -> Type Source #

Generic ( Digit a)

Since: containers-0.6.1

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( Digit a) :: Type -> Type Source #

Generic ( Node a)

Since: containers-0.6.1

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( Node a) :: Type -> Type Source #

Generic ( Elem a)

Since: containers-0.6.1

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( Elem a) :: Type -> Type Source #

Generic ( ViewL a)

Since: containers-0.5.8

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( ViewL a) :: Type -> Type Source #

Generic ( ViewR a)

Since: containers-0.5.8

Instance details

Defined in Data.Sequence.Internal

Associated Types

type Rep ( ViewR a) :: Type -> Type Source #

Generic ( Fix f)
Instance details

Defined in Data.Fix

Associated Types

type Rep ( Fix f) :: Type -> Type Source #

Generic ( Finite n)
Instance details

Defined in Data.Finite.Internal

Associated Types

type Rep ( Finite n) :: Type -> Type Source #

Generic ( Doc a)
Instance details

Defined in Text.PrettyPrint.Annotated.HughesPJ

Associated Types

type Rep ( Doc a) :: Type -> Type Source #

Generic ( Maybe a)
Instance details

Defined in Data.Strict.Maybe

Associated Types

type Rep ( Maybe a) :: Type -> Type Source #

Generic ( Either a b)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Either a b) :: Type -> Type Source #

Generic ( V1 p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( V1 p) :: Type -> Type Source #

Generic ( U1 p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( U1 p) :: Type -> Type Source #

Generic (a, b)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b) :: Type -> Type Source #

Methods

from :: (a, b) -> Rep (a, b) x Source #

to :: Rep (a, b) x -> (a, b) Source #

Generic ( Arg a b)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Associated Types

type Rep ( Arg a b) :: Type -> Type Source #

Generic ( WrappedMonad m a)

Since: base-4.7.0.0

Instance details

Defined in Control.Applicative

Associated Types

type Rep ( WrappedMonad m a) :: Type -> Type Source #

Generic ( Proxy t)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Proxy t) :: Type -> Type Source #

Generic ( Cofree f a)
Instance details

Defined in Control.Comonad.Cofree

Associated Types

type Rep ( Cofree f a) :: Type -> Type Source #

Generic ( Free f a)
Instance details

Defined in Control.Monad.Free

Associated Types

type Rep ( Free f a) :: Type -> Type Source #

Generic ( These a b)
Instance details

Defined in Data.These

Associated Types

type Rep ( These a b) :: Type -> Type Source #

Generic ( Pair a b)
Instance details

Defined in Data.Strict.Tuple

Associated Types

type Rep ( Pair a b) :: Type -> Type Source #

Generic ( These a b)
Instance details

Defined in Data.Strict.These

Associated Types

type Rep ( These a b) :: Type -> Type Source #

Generic ( Either a b)
Instance details

Defined in Data.Strict.Either

Associated Types

type Rep ( Either a b) :: Type -> Type Source #

Generic ( Rec1 f p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( Rec1 f p) :: Type -> Type Source #

Generic ( URec ( Ptr ()) p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( URec ( Ptr ()) p) :: Type -> Type Source #

Generic ( URec Char p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( URec Char p) :: Type -> Type Source #

Generic ( URec Double p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Generic ( URec Float p)
Instance details

Defined in GHC.Generics

Generic ( URec Int p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( URec Int p) :: Type -> Type Source #

Generic ( URec Word p)

Since: base-4.9.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( URec Word p) :: Type -> Type Source #

Generic (a, b, c)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b, c) :: Type -> Type Source #

Methods

from :: (a, b, c) -> Rep (a, b, c) x Source #

to :: Rep (a, b, c) x -> (a, b, c) Source #

Generic ( WrappedArrow a b c)

Since: base-4.7.0.0

Instance details

Defined in Control.Applicative

Associated Types

type Rep ( WrappedArrow a b c) :: Type -> Type Source #

Generic ( Kleisli m a b)

Since: base-4.14.0.0

Instance details

Defined in Control.Arrow

Associated Types

type Rep ( Kleisli m a b) :: Type -> Type Source #

Generic ( Const a b)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Const

Associated Types

type Rep ( Const a b) :: Type -> Type Source #

Generic ( Ap f a)

Since: base-4.12.0.0

Instance details

Defined in Data.Monoid

Associated Types

type Rep ( Ap f a) :: Type -> Type Source #

Generic ( Alt f a)

Since: base-4.8.0.0

Instance details

Defined in Data.Semigroup.Internal

Associated Types

type Rep ( Alt f a) :: Type -> Type Source #

Generic ( Join p a)
Instance details

Defined in Data.Bifunctor.Join

Associated Types

type Rep ( Join p a) :: Type -> Type Source #

Generic ( FreeF f a b)
Instance details

Defined in Control.Monad.Trans.Free

Associated Types

type Rep ( FreeF f a b) :: Type -> Type Source #

Generic ( Tagged s b)
Instance details

Defined in Data.Tagged

Associated Types

type Rep ( Tagged s b) :: Type -> Type Source #

Generic ( These1 f g a)
Instance details

Defined in Data.Functor.These

Associated Types

type Rep ( These1 f g a) :: Type -> Type Source #

Generic ( K1 i c p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( K1 i c p) :: Type -> Type Source #

Methods

from :: K1 i c p -> Rep ( K1 i c p) x Source #

to :: Rep ( K1 i c p) x -> K1 i c p Source #

Generic ((f :+: g) p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ((f :+: g) p) :: Type -> Type Source #

Methods

from :: (f :+: g) p -> Rep ((f :+: g) p) x Source #

to :: Rep ((f :+: g) p) x -> (f :+: g) p Source #

Generic ((f :*: g) p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ((f :*: g) p) :: Type -> Type Source #

Methods

from :: (f :*: g) p -> Rep ((f :*: g) p) x Source #

to :: Rep ((f :*: g) p) x -> (f :*: g) p Source #

Generic (a, b, c, d)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b, c, d) :: Type -> Type Source #

Methods

from :: (a, b, c, d) -> Rep (a, b, c, d) x Source #

to :: Rep (a, b, c, d) x -> (a, b, c, d) Source #

Generic ( Product f g a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Product

Associated Types

type Rep ( Product f g a) :: Type -> Type Source #

Generic ( Sum f g a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Sum

Associated Types

type Rep ( Sum f g a) :: Type -> Type Source #

Methods

from :: Sum f g a -> Rep ( Sum f g a) x Source #

to :: Rep ( Sum f g a) x -> Sum f g a Source #

Generic ( M1 i c f p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ( M1 i c f p) :: Type -> Type Source #

Methods

from :: M1 i c f p -> Rep ( M1 i c f p) x Source #

to :: Rep ( M1 i c f p) x -> M1 i c f p Source #

Generic ((f :.: g) p)

Since: base-4.7.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep ((f :.: g) p) :: Type -> Type Source #

Methods

from :: (f :.: g) p -> Rep ((f :.: g) p) x Source #

to :: Rep ((f :.: g) p) x -> (f :.: g) p Source #

Generic (a, b, c, d, e)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b, c, d, e) :: Type -> Type Source #

Methods

from :: (a, b, c, d, e) -> Rep (a, b, c, d, e) x Source #

to :: Rep (a, b, c, d, e) x -> (a, b, c, d, e) Source #

Generic ( Compose f g a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Compose

Associated Types

type Rep ( Compose f g a) :: Type -> Type Source #

Generic ( WrappedBifunctor p a b)
Instance details

Defined in Data.Bifunctor.Wrapped

Associated Types

type Rep ( WrappedBifunctor p a b) :: Type -> Type Source #

Generic ( Joker g a b)
Instance details

Defined in Data.Bifunctor.Joker

Associated Types

type Rep ( Joker g a b) :: Type -> Type Source #

Generic ( Flip p a b)
Instance details

Defined in Data.Bifunctor.Flip

Associated Types

type Rep ( Flip p a b) :: Type -> Type Source #

Generic ( Clown f a b)
Instance details

Defined in Data.Bifunctor.Clown

Associated Types

type Rep ( Clown f a b) :: Type -> Type Source #

Generic (a, b, c, d, e, f)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b, c, d, e, f) :: Type -> Type Source #

Methods

from :: (a, b, c, d, e, f) -> Rep (a, b, c, d, e, f) x Source #

to :: Rep (a, b, c, d, e, f) x -> (a, b, c, d, e, f) Source #

Generic ( Sum p q a b)
Instance details

Defined in Data.Bifunctor.Sum

Associated Types

type Rep ( Sum p q a b) :: Type -> Type Source #

Methods

from :: Sum p q a b -> Rep ( Sum p q a b) x Source #

to :: Rep ( Sum p q a b) x -> Sum p q a b Source #

Generic ( Product f g a b)
Instance details

Defined in Data.Bifunctor.Product

Associated Types

type Rep ( Product f g a b) :: Type -> Type Source #

Generic (a, b, c, d, e, f, g)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Associated Types

type Rep (a, b, c, d, e, f, g) :: Type -> Type Source #

Methods

from :: (a, b, c, d, e, f, g) -> Rep (a, b, c, d, e, f, g) x Source #

to :: Rep (a, b, c, d, e, f, g) x -> (a, b, c, d, e, f, g) Source #

Generic ( Tannen f p a b)
Instance details

Defined in Data.Bifunctor.Tannen

Associated Types

type Rep ( Tannen f p a b) :: Type -> Type Source #

Methods

from :: Tannen f p a b -> Rep ( Tannen f p a b) x Source #

to :: Rep ( Tannen f p a b) x -> Tannen f p a b Source #

Generic (a, b, c, d, e, f, g, h) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Associated Types

type Rep (a, b, c, d, e, f, g, h) :: Type -> Type Source #

Methods

from :: (a, b, c, d, e, f, g, h) -> Rep (a, b, c, d, e, f, g, h) x Source #

to :: Rep (a, b, c, d, e, f, g, h) x -> (a, b, c, d, e, f, g, h) Source #

Generic ( Biff p f g a b)
Instance details

Defined in Data.Bifunctor.Biff

Associated Types

type Rep ( Biff p f g a b) :: Type -> Type Source #

Methods

from :: Biff p f g a b -> Rep ( Biff p f g a b) x Source #

to :: Rep ( Biff p f g a b) x -> Biff p f g a b Source #

data Identity a Source #

Identity functor and monad. (a non-strict monad)

Since: base-4.8.0.0

Instances

Instances details
Monad Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Functor Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

MonadFix Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Applicative Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Foldable Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Traversable Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Representable Identity
Instance details

Defined in Data.Functor.Rep

Associated Types

type Rep Identity Source #

ToJSON1 Identity
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON1 Identity
Instance details

Defined in Data.Aeson.Types.FromJSON

Eq1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Ord1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Read1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Show1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Hashable1 Identity
Instance details

Defined in Data.Hashable.Class

Unbox a => Vector Vector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

( BeamBackend be, Generic (tbl ( Nullable Identity )), Generic (tbl ( Nullable Exposed )), GFromBackendRow be ( Rep (tbl ( Nullable Exposed ))) ( Rep (tbl ( Nullable Identity )))) => FromBackendRow be (tbl ( Nullable Identity )) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, Generic (tbl Identity ), Generic (tbl Exposed ), GFromBackendRow be ( Rep (tbl Exposed )) ( Rep (tbl Identity ))) => FromBackendRow be (tbl Identity ) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Bounded a => Bounded ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Enum a => Enum ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Eq a => Eq ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Floating a => Floating ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Fractional a => Fractional ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Integral a => Integral ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Num a => Num ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Ord a => Ord ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Read a => Read ( Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Real a => Real ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

RealFloat a => RealFloat ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

RealFrac a => RealFrac ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Show a => Show ( Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Ix a => Ix ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

IsString a => IsString ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.String

Generic ( Identity a)

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep ( Identity a) :: Type -> Type Source #

Semigroup a => Semigroup ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Monoid a => Monoid ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Hashable a => Hashable ( Identity a)
Instance details

Defined in Data.Hashable.Class

ToJSON a => ToJSON ( Identity a)
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey a => ToJSONKey ( Identity a)
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON a => FromJSON ( Identity a)
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey a => FromJSONKey ( Identity a)
Instance details

Defined in Data.Aeson.Types.FromJSON

Storable a => Storable ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Bits a => Bits ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

FiniteBits a => FiniteBits ( Identity a)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Identity

Unbox a => Unbox ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

Generic1 Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep1 Identity :: k -> Type Source #

Table t => SqlJustable (t Identity ) (t ( Nullable Identity )) Source #
Instance details

Defined in Database.Beam.Query.Combinators

Table t => SqlJustable ( PrimaryKey t Identity ) ( PrimaryKey t ( Nullable Identity )) Source #
Instance details

Defined in Database.Beam.Query.Combinators

type Rep Identity
Instance details

Defined in Data.Functor.Rep

newtype MVector s ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

type Rep ( Identity a)
Instance details

Defined in Data.Functor.Identity

type Rep ( Identity a) = D1 (' MetaData "Identity" "Data.Functor.Identity" "base" ' True ) ( C1 (' MetaCons "Identity" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "runIdentity") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 a)))
newtype Vector ( Identity a)
Instance details

Defined in Data.Vector.Unboxed.Base

type Rep1 Identity
Instance details

Defined in Data.Functor.Identity

type Rep1 Identity = D1 (' MetaData "Identity" "Data.Functor.Identity" "base" ' True ) ( C1 (' MetaCons "Identity" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "runIdentity") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) Par1 ))