beam-migrate-0.5.1.2: SQL DDL support and migrations support library for Beam
Safe Haskell None
Language Haskell2010

Database.Beam.Haskell.Syntax

Description

Instances that allow us to use Haskell as a backend syntax. This allows us to use migrations defined a la SQL to generate a beam schema.

Mainly of interest to backends.

Unfortunately, we define some orphan Hashable instances that aren't defined for us in haskell-src-exts .

Synopsis

Documentation

data HsConstraintDefinition Source #

Instances

Instances details
Eq HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Generic HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Sql92DisplaySyntax HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Sql92SerializableConstraintDefinitionSyntax HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ColumnConstraintDefinitionSyntax HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsConstraintDefinition = D1 (' MetaData "HsConstraintDefinition" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.1.2-5J0i6YZEVbedBErF518Oy" ' False ) ( C1 (' MetaCons "HsConstraintDefinition" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "hsConstraintDefinitionConstraint") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 HsExpr )))
type Sql92ColumnConstraintDefinitionConstraintSyntax HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnConstraintDefinitionAttributesSyntax HsConstraintDefinition Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

data HsImport Source #

Instances

Instances details
Eq HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Generic HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Semigroup HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Monoid HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsImport Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsImport = D1 (' MetaData "HsImport" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.1.2-5J0i6YZEVbedBErF518Oy" ' False ) ( C1 (' MetaCons "HsImportAll" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "HsImportSome" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Set ( ImportSpec ())))))

data HsDataType Source #

Instances

Instances details
Eq HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Generic HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql2003BinaryAndVarBinaryDataTypeSyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql2008BigIntDataTypeSyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql99DataTypeSyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Sql92DisplaySyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92DataTypeSyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Sql92SerializableDataTypeSyntax HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

HasDataTypeCreatedCheck HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Methods

dataTypeHasBeenCreated :: HsDataType -> ( forall preCondition. Typeable preCondition => [preCondition]) -> Bool Source #

type Rep HsDataType Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

data HsExpr Source #

Instances

Instances details
Eq HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Generic HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92FieldNameSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92QuantifierSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ExtractFieldSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ExpressionSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Methods

valueE :: Sql92ExpressionValueSyntax HsExpr -> HsExpr Source #

rowE :: [ HsExpr ] -> HsExpr Source #

quantifierListE :: [ HsExpr ] -> HsExpr Source #

coalesceE :: [ HsExpr ] -> HsExpr Source #

caseE :: [( HsExpr , HsExpr )] -> HsExpr -> HsExpr Source #

fieldE :: Sql92ExpressionFieldNameSyntax HsExpr -> HsExpr Source #

betweenE :: HsExpr -> HsExpr -> HsExpr -> HsExpr Source #

andE :: HsExpr -> HsExpr -> HsExpr Source #

orE :: HsExpr -> HsExpr -> HsExpr Source #

addE :: HsExpr -> HsExpr -> HsExpr Source #

subE :: HsExpr -> HsExpr -> HsExpr Source #

mulE :: HsExpr -> HsExpr -> HsExpr Source #

divE :: HsExpr -> HsExpr -> HsExpr Source #

likeE :: HsExpr -> HsExpr -> HsExpr Source #

modE :: HsExpr -> HsExpr -> HsExpr Source #

overlapsE :: HsExpr -> HsExpr -> HsExpr Source #

nullIfE :: HsExpr -> HsExpr -> HsExpr Source #

positionE :: HsExpr -> HsExpr -> HsExpr Source #

eqE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

neqE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

ltE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

gtE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

leE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

geE :: Maybe ( Sql92ExpressionQuantifierSyntax HsExpr ) -> HsExpr -> HsExpr -> HsExpr Source #

eqMaybeE :: HsExpr -> HsExpr -> HsExpr -> HsExpr Source #

neqMaybeE :: HsExpr -> HsExpr -> HsExpr -> HsExpr Source #

castE :: HsExpr -> Sql92ExpressionCastTargetSyntax HsExpr -> HsExpr Source #

notE :: HsExpr -> HsExpr Source #

negateE :: HsExpr -> HsExpr Source #

isNullE :: HsExpr -> HsExpr Source #

isNotNullE :: HsExpr -> HsExpr Source #

isTrueE :: HsExpr -> HsExpr Source #

isNotTrueE :: HsExpr -> HsExpr Source #

isFalseE :: HsExpr -> HsExpr Source #

isNotFalseE :: HsExpr -> HsExpr Source #

isUnknownE :: HsExpr -> HsExpr Source #

isNotUnknownE :: HsExpr -> HsExpr Source #

charLengthE :: HsExpr -> HsExpr Source #

octetLengthE :: HsExpr -> HsExpr Source #

bitLengthE :: HsExpr -> HsExpr Source #

lowerE :: HsExpr -> HsExpr Source #

upperE :: HsExpr -> HsExpr Source #

trimE :: HsExpr -> HsExpr Source #

absE :: HsExpr -> HsExpr Source #

extractE :: Sql92ExpressionExtractFieldSyntax HsExpr -> HsExpr -> HsExpr Source #

existsE :: Sql92ExpressionSelectSyntax HsExpr -> HsExpr Source #

uniqueE :: Sql92ExpressionSelectSyntax HsExpr -> HsExpr Source #

subqueryE :: Sql92ExpressionSelectSyntax HsExpr -> HsExpr Source #

currentTimestampE :: HsExpr Source #

defaultE :: HsExpr Source #

inE :: HsExpr -> [ HsExpr ] -> HsExpr Source #

IsSql92ColumnConstraintSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

HasSqlValueSyntax HsExpr Bool Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

HasSqlValueSyntax HsExpr Int32 Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionExtractFieldSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionCastTargetSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionFieldNameSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionSelectSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionValueSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ExpressionQuantifierSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnConstraintMatchTypeSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnConstraintReferentialActionSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnConstraintExpressionSyntax HsExpr Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

data HsColumnSchema Source #

Instances

Instances details
Eq HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Sql92DisplaySyntax HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ColumnSchemaSyntax HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnSchemaColumnTypeSyntax HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnSchemaExpressionSyntax HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92ColumnSchemaColumnConstraintDefinitionSyntax HsColumnSchema Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

data HsAction Source #

Instances

Instances details
Semigroup HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Monoid HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92AlterTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92DropTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92CreateTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92DdlCommandSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92AlterTableTableNameSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92AlterTableAlterTableActionSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92DropTableTableNameSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92CreateTableTableNameSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92CreateTableColumnSchemaSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92CreateTableTableConstraintSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92CreateTableOptionsSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92DdlCommandCreateTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92DdlCommandAlterTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92DdlCommandDropTableSyntax HsAction Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

DDL Syntax definitions

data HsNone Source #

Constructors

HsNone

Instances

Instances details
Eq HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Ord HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Show HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Generic HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Semigroup HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Monoid HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

Hashable HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ConstraintAttributesSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92ReferentialActionSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92MatchTypeSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92AlterColumnActionSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

IsSql92AlterTableActionSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Rep HsNone = D1 (' MetaData "HsNone" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.1.2-5J0i6YZEVbedBErF518Oy" ' False ) ( C1 (' MetaCons "HsNone" ' PrefixI ' False ) ( U1 :: Type -> Type ))
type Sql92AlterTableAlterColumnActionSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

type Sql92AlterTableColumnSchemaSyntax HsNone Source #
Instance details

Defined in Database.Beam.Haskell.Syntax

HsSyntax utilities

Orphans

Orphan instances

Hashable Boxed Source #
Instance details

Hashable ( ModuleName ()) Source #
Instance details

Hashable ( SpecialCon ()) Source #
Instance details

Hashable ( QName ()) Source #
Instance details

Hashable ( Name ()) Source #
Instance details

Hashable ( IPName ()) Source #
Instance details

Hashable ( QOp ()) Source #
Instance details

Hashable ( Op ()) Source #
Instance details

Hashable ( CName ()) Source #
Instance details

Hashable ( Namespace ()) Source #
Instance details

Hashable ( ImportSpec ()) Source #
Instance details

Hashable ( Assoc ()) Source #
Instance details

Hashable ( Decl ()) Source #
Instance details

Hashable ( PatternSynDirection ()) Source #
Instance details

Hashable ( TypeEqn ()) Source #
Instance details

Hashable ( Annotation ()) Source #
Instance details

Hashable ( BooleanFormula ()) Source #
Instance details

Hashable ( Role ()) Source #
Instance details

Hashable ( DataOrNew ()) Source #
Instance details

Hashable ( InjectivityInfo ()) Source #
Instance details

Hashable ( ResultSig ()) Source #
Instance details

Hashable ( DeclHead ()) Source #
Instance details

Hashable ( InstRule ()) Source #
Instance details

Hashable ( InstHead ()) Source #
Instance details

Hashable ( Deriving ()) Source #
Instance details

Hashable ( DerivStrategy ()) Source #
Instance details

Hashable ( Binds ()) Source #
Instance details

Hashable ( IPBind ()) Source #
Instance details

Hashable ( Match ()) Source #
Instance details

Hashable ( QualConDecl ()) Source #
Instance details

Hashable ( ConDecl ()) Source #
Instance details

Hashable ( FieldDecl ()) Source #
Instance details

Hashable ( GadtDecl ()) Source #
Instance details

Hashable ( ClassDecl ()) Source #
Instance details

Hashable ( InstDecl ()) Source #
Instance details

Hashable ( BangType ()) Source #
Instance details

Hashable ( Unpackedness ()) Source #
Instance details

Hashable ( Rhs ()) Source #
Instance details

Hashable ( GuardedRhs ()) Source #
Instance details

Hashable ( Type ()) Source #
Instance details

Hashable ( MaybePromotedName ()) Source #
Instance details

Hashable ( Promoted ()) Source #
Instance details

Hashable ( TyVarBind ()) Source #
Instance details

Hashable ( FunDep ()) Source #
Instance details

Hashable ( Context ()) Source #
Instance details

Hashable ( Asst ()) Source #
Instance details

Hashable ( Literal ()) Source #
Instance details

Hashable ( Sign ()) Source #
Instance details

Hashable ( Exp ()) Source #
Instance details

Hashable ( XName ()) Source #
Instance details

Hashable ( XAttr ()) Source #
Instance details

Hashable ( Bracket ()) Source #
Instance details

Hashable ( Splice ()) Source #
Instance details

Hashable ( Safety ()) Source #
Instance details

Hashable ( CallConv ()) Source #
Instance details

Hashable ( Overlap ()) Source #
Instance details

Hashable ( Activation ()) Source #
Instance details

Hashable ( Rule ()) Source #
Instance details

Hashable ( RuleVar ()) Source #
Instance details

Hashable ( Pat ()) Source #
Instance details

Hashable ( PXAttr ()) Source #
Instance details

Hashable ( RPatOp ()) Source #
Instance details

Hashable ( RPat ()) Source #
Instance details

Hashable ( PatField ()) Source #
Instance details

Hashable ( Stmt ()) Source #
Instance details

Hashable ( QualStmt ()) Source #
Instance details

Hashable ( FieldUpdate ()) Source #
Instance details

Hashable ( Alt ()) Source #
Instance details