Safe Haskell | Safe-Inferred |
---|---|
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 {}
- 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 {}
- 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
IsString HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax fromString :: String -> HsEntityName # | |
Show HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax showsPrec :: Int -> HsEntityName -> ShowS # show :: HsEntityName -> String # showList :: [HsEntityName] -> ShowS # | |
Eq HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax (==) :: HsEntityName -> HsEntityName -> Bool # (/=) :: HsEntityName -> HsEntityName -> Bool # | |
Ord HsEntityName Source # | |
Defined in Database.Beam.Haskell.Syntax compare :: HsEntityName -> HsEntityName -> Ordering # (<) :: HsEntityName -> HsEntityName -> Bool # (<=) :: HsEntityName -> HsEntityName -> Bool # (>) :: HsEntityName -> HsEntityName -> Bool # (>=) :: HsEntityName -> HsEntityName -> Bool # max :: HsEntityName -> HsEntityName -> HsEntityName # min :: HsEntityName -> HsEntityName -> HsEntityName # |
HsImportAll | |
HsImportSome (Set (ImportSpec ())) |
Instances
Monoid HsImport Source # | |
Semigroup HsImport Source # | |
Generic HsImport Source # | |
Show HsImport Source # | |
Eq HsImport Source # | |
Hashable HsImport Source # | |
Defined in Database.Beam.Haskell.Syntax | |
type Rep HsImport Source # | |
Defined in Database.Beam.Haskell.Syntax type Rep HsImport = D1 ('MetaData "HsImport" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.2.0-inplace" '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
Generic HsType Source # | |
Show HsType Source # | |
Eq HsType Source # | |
Hashable HsType Source # | |
Defined in Database.Beam.Haskell.Syntax | |
type Rep HsType Source # | |
Defined in Database.Beam.Haskell.Syntax type Rep HsType = D1 ('MetaData "HsType" "Database.Beam.Haskell.Syntax" "beam-migrate-0.5.2.0-inplace" '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
Show HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax showsPrec :: Int -> HsColumnSchema -> ShowS # show :: HsColumnSchema -> String # showList :: [HsColumnSchema] -> ShowS # | |
Sql92DisplaySyntax HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax | |
IsSql92ColumnSchemaSyntax HsColumnSchema Source # | |
Eq HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax (==) :: HsColumnSchema -> HsColumnSchema -> Bool # (/=) :: HsColumnSchema -> HsColumnSchema -> Bool # | |
Hashable HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax hashWithSalt :: Int -> HsColumnSchema -> Int # hash :: HsColumnSchema -> Int # | |
type Sql92ColumnSchemaColumnConstraintDefinitionSyntax HsColumnSchema Source # | |
type Sql92ColumnSchemaColumnTypeSyntax HsColumnSchema Source # | |
type Sql92ColumnSchemaExpressionSyntax HsColumnSchema Source # | |
Defined in Database.Beam.Haskell.Syntax |
HsDecl | |
|
HsAction | |
|
Instances
newtype HsBackendConstraint Source #
HsBackendConstraint | |
|
data HsBeamBackend f Source #
Instances
Monoid (HsBeamBackend f) Source # | |
Defined in Database.Beam.Haskell.Syntax mempty :: HsBeamBackend f # mappend :: HsBeamBackend f -> HsBeamBackend f -> HsBeamBackend f # mconcat :: [HsBeamBackend f] -> HsBeamBackend f # | |
Semigroup (HsBeamBackend f) Source # | |
Defined in Database.Beam.Haskell.Syntax (<>) :: HsBeamBackend f -> HsBeamBackend f -> HsBeamBackend f # sconcat :: NonEmpty (HsBeamBackend f) -> HsBeamBackend f # stimes :: Integral b => b -> HsBeamBackend f -> HsBeamBackend f # |
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
BeamMigrateOnlySqlBackend HsMigrateBackend Source # | |
Defined in Database.Beam.Haskell.Syntax | |
type BeamSqlBackendSyntax HsMigrateBackend Source # | |
Defined in Database.Beam.Haskell.Syntax |
hsTableVarName :: TableName -> String Source #
hsTableTypeName :: TableName -> String Source #
hsErrorType :: String -> HsDataType Source #
HsSyntax utilities
tyConNamed :: String -> Type () Source #
tyVarNamed :: String -> Type () Source #