{-# LANGUAGE AllowAmbiguousTypes #-}
module Database.Beam.Migrate.Generics
(
defaultMigratableDbSettings
, HasDefaultSqlDataType(..)
, HasNullableConstraint, NullableStatus
) where
import Database.Beam.Migrate.Types
import Database.Beam.Migrate.Generics.Tables
import Database.Beam.Migrate.Generics.Types
import Data.Proxy
import GHC.Generics
defaultMigratableDbSettings
:: forall be db.
( Generic (CheckedDatabaseSettings be db)
, GAutoMigratableDb be (Rep (CheckedDatabaseSettings be db)) )
=> CheckedDatabaseSettings be db
defaultMigratableDbSettings =
to (defaultMigratableDbSettings' (Proxy @be) :: Rep (CheckedDatabaseSettings be db) ())