{-# 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 :: CheckedDatabaseSettings be db
defaultMigratableDbSettings =
Rep (CheckedDatabaseSettings be db) ()
-> CheckedDatabaseSettings be db
forall a x. Generic a => Rep a x -> a
to (Proxy be -> Rep (CheckedDatabaseSettings be db) ()
forall be (x :: * -> *). GAutoMigratableDb be x => Proxy be -> x ()
defaultMigratableDbSettings' (Proxy be
forall k (t :: k). Proxy t
Proxy @be) :: Rep (CheckedDatabaseSettings be db) ())