Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
newtype
HsDbField
=
HsDbField
{
- buildHsDbField :: Type () -> Type ()
- data HsConstraintDefinition = HsConstraintDefinition { }
- newtype HsEntityName = HsEntityName { }
-
data
HsImport
- = HsImportAll
- | HsImportSome ( Set ( ImportSpec ()))
- importSome :: Text -> [ ImportSpec ()] -> HsImports
- importTyNamed :: Text -> ImportSpec ()
- importVarNamed :: Text -> ImportSpec ()
- newtype HsImports = HsImports ( Map ( ModuleName ()) HsImport )
- data HsDataType = HsDataType { }
-
data
HsType
=
HsType
{
- hsTypeSyntax :: Type ()
- hsTypeImports :: HsImports
-
data
HsExpr
=
HsExpr
{
- hsExprSyntax :: Exp ()
- hsExprImports :: HsImports
- hsExprConstraints :: [ Asst ()]
- hsExprTypeVariables :: Set ( Name ())
-
data
HsColumnSchema
=
HsColumnSchema
{
- mkHsColumnSchema :: Text -> HsExpr
- hsColumnSchemaType :: HsType
-
data
HsDecl
=
HsDecl
{
- hsDeclSyntax :: Decl ()
- hsDeclImports :: HsImports
- hsDeclExports :: [ ExportSpec ()]
-
data
HsAction
=
HsAction
{
- hsSyntaxMigration :: [( Maybe ( Pat ()), HsExpr )]
- hsSyntaxEntities :: [ HsEntity ]
-
newtype
HsBackendConstraint
=
HsBackendConstraint
{
- buildHsBackendConstraint :: Type () -> Asst ()
- data HsBeamBackend f
- data HsEntity = HsEntity { }
-
newtype
HsFieldLookup
=
HsFieldLookup
{
- hsFieldLookup :: Text -> Maybe ( Text , Type ())
- newtype HsTableConstraint = HsTableConstraint ( Text -> HsFieldLookup -> HsTableConstraintDecls )
-
data
HsTableConstraintDecls
=
HsTableConstraintDecls
{
- hsTableConstraintInstance :: [ InstDecl ()]
- hsTableConstraintDecls :: [ HsDecl ]
-
data
HsModule
=
HsModule
{
- hsModuleName :: String
- hsModuleEntities :: [ HsEntity ]
- hsModuleMigration :: [( Maybe ( Pat ()), HsExpr )]
- hsActionsToModule :: String -> [ HsAction ] -> HsModule
- unqual :: String -> QName ()
- entityDbFieldName :: HsEntity -> String
- derivingDecl :: [ InstRule ()] -> Deriving ()
- dataDecl :: DeclHead () -> [ QualConDecl ()] -> Maybe ( Deriving ()) -> Decl ()
- insDataDecl :: Type () -> [ QualConDecl ()] -> Maybe ( Deriving ()) -> InstDecl ()
- databaseTypeDecl :: [ HsEntity ] -> Decl ()
- migrationTypeDecl :: HsBeamBackend HsExpr -> [ Type ()] -> Decl ()
- migrationDecl :: HsBeamBackend HsExpr -> [ Exp ()] -> [( Maybe ( Pat ()), HsExpr )] -> [ HsEntity ] -> Decl ()
- dbTypeDecl :: HsBeamBackend HsExpr -> Decl ()
- dbDecl :: HsBeamBackend HsExpr -> [ HsExpr ] -> Decl ()
- renderHsSchema :: HsModule -> Either String String
- data HsNone = HsNone
- data HsMigrateBackend = HsMigrateBackend
- hsMkTableName :: ( Char -> Char ) -> TableName -> String
- hsTableVarName :: TableName -> String
- hsTableTypeName :: TableName -> String
- hsErrorType :: String -> HsDataType
- tyParens :: Type () -> Type ()
- functionTy :: Type () -> Type () -> Type ()
- tyTuple :: [ Type ()] -> Type ()
- tyApp :: Type () -> [ Type ()] -> Type ()
- tyConNamed :: String -> Type ()
- tyVarNamed :: String -> Type ()
- combineHsExpr :: ( Exp () -> Exp () -> Exp ()) -> HsExpr -> HsExpr -> HsExpr
- hsApp :: HsExpr -> [ HsExpr ] -> HsExpr
- hsVisibleTyApp :: HsExpr -> Type () -> HsExpr
- hsApApp :: HsExpr -> [ HsExpr ] -> HsExpr
- hsStr :: Text -> HsExpr
- hsRecCon :: Text -> [( Text , HsExpr )] -> HsExpr
- hsMaybe :: Maybe HsExpr -> HsExpr
- hsVar :: Text -> HsExpr
- hsVarFrom :: Text -> Text -> HsExpr
- hsTyCon :: Text -> HsExpr
- hsInt :: ( Integral a, Show a) => a -> HsExpr
- hsOp :: Text -> QOp ()
- hsInstance :: Text -> [ Type ()] -> [ InstDecl ()] -> Decl ()
- hsDerivingInstance :: Text -> [ Type ()] -> Decl ()
- hsList :: [ HsExpr ] -> HsExpr
- hsTuple :: [ HsExpr ] -> HsExpr
- inst :: String -> InstRule ()
- beamMigrateSqlBackend :: HsBackendConstraint
Documentation
data HsConstraintDefinition Source #
Instances
newtype HsEntityName Source #
Instances
Eq HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax (==) :: HsEntityName -> HsEntityName -> Bool Source # (/=) :: HsEntityName -> HsEntityName -> Bool Source # |
|
Ord HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax compare :: HsEntityName -> HsEntityName -> Ordering Source # (<) :: HsEntityName -> HsEntityName -> Bool Source # (<=) :: HsEntityName -> HsEntityName -> Bool Source # (>) :: HsEntityName -> HsEntityName -> Bool Source # (>=) :: HsEntityName -> HsEntityName -> Bool Source # max :: HsEntityName -> HsEntityName -> HsEntityName Source # min :: HsEntityName -> HsEntityName -> HsEntityName Source # |
|
Show HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax |
|
IsString HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax fromString :: String -> HsEntityName Source # |
HsImportAll | |
HsImportSome ( Set ( ImportSpec ())) |
Instances
Eq HsImport Source # | |
Show HsImport Source # | |
Generic HsImport Source # | |
Semigroup HsImport Source # | |
Monoid HsImport Source # | |
Hashable HsImport Source # | |
type Rep HsImport Source # | |
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
())))))
|
importSome :: Text -> [ ImportSpec ()] -> HsImports Source #
importTyNamed :: Text -> ImportSpec () Source #
importVarNamed :: Text -> ImportSpec () Source #
HsImports ( Map ( ModuleName ()) HsImport ) |
data HsDataType Source #
Instances
HsType | |
|
Instances
Eq HsType Source # | |
Show HsType Source # | |
Generic HsType Source # | |
Hashable HsType Source # | |
type Rep HsType Source # | |
Defined in Database.Beam.Haskell.Syntax
type
Rep
HsType
=
D1
('
MetaData
"HsType" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.1.2-5J0i6YZEVbedBErF518Oy" '
False
) (
C1
('
MetaCons
"HsType" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"hsTypeSyntax") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
Type
()))
:*:
S1
('
MetaSel
('
Just
"hsTypeImports") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
HsImports
)))
|
HsExpr | |
|
Instances
data HsColumnSchema Source #
Instances
Eq HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax (==) :: HsColumnSchema -> HsColumnSchema -> Bool Source # (/=) :: HsColumnSchema -> HsColumnSchema -> Bool Source # |
|
Show HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax |
|
Hashable HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax hashWithSalt :: Int -> HsColumnSchema -> Int Source # hash :: HsColumnSchema -> Int Source # |
|
Sql92DisplaySyntax HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax displaySyntax :: HsColumnSchema -> String Source # |
|
IsSql92ColumnSchemaSyntax HsColumnSchema Source # | |
type Sql92ColumnSchemaColumnTypeSyntax HsColumnSchema Source # | |
type Sql92ColumnSchemaExpressionSyntax HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax |
|
type Sql92ColumnSchemaColumnConstraintDefinitionSyntax HsColumnSchema Source # | |
HsDecl | |
|
HsAction | |
|
Instances
newtype HsBackendConstraint Source #
HsBackendConstraint | |
|
data HsBeamBackend f Source #
Instances
Semigroup ( HsBeamBackend f) Source # | |
Defined in Database.Beam.Haskell.Syntax (<>) :: HsBeamBackend f -> HsBeamBackend f -> HsBeamBackend f Source # sconcat :: NonEmpty ( HsBeamBackend f) -> HsBeamBackend f Source # stimes :: Integral b => b -> HsBeamBackend f -> HsBeamBackend f Source # |
|
Monoid ( HsBeamBackend f) Source # | |
Defined in Database.Beam.Haskell.Syntax mempty :: HsBeamBackend f Source # mappend :: HsBeamBackend f -> HsBeamBackend f -> HsBeamBackend f Source # mconcat :: [ HsBeamBackend f] -> HsBeamBackend f Source # |
newtype HsFieldLookup Source #
HsFieldLookup | |
|
newtype HsTableConstraint Source #
Instances
data HsTableConstraintDecls Source #
HsTableConstraintDecls | |
|
Instances
HsModule | |
|
entityDbFieldName :: HsEntity -> String Source #
derivingDecl :: [ InstRule ()] -> Deriving () Source #
insDataDecl :: Type () -> [ QualConDecl ()] -> Maybe ( Deriving ()) -> InstDecl () Source #
databaseTypeDecl :: [ HsEntity ] -> Decl () Source #
migrationTypeDecl :: HsBeamBackend HsExpr -> [ Type ()] -> Decl () Source #
migrationDecl :: HsBeamBackend HsExpr -> [ Exp ()] -> [( Maybe ( Pat ()), HsExpr )] -> [ HsEntity ] -> Decl () Source #
dbTypeDecl :: HsBeamBackend HsExpr -> Decl () Source #
DDL Syntax definitions
Instances
data HsMigrateBackend Source #
Instances
hsTableVarName :: TableName -> String Source #
hsTableTypeName :: TableName -> String Source #
hsErrorType :: String -> HsDataType Source #
HsSyntax utilities
tyConNamed :: String -> Type () Source #
tyVarNamed :: String -> Type () Source #