{-# LANGUAGE AllowAmbiguousTypes #-}
module Database.Beam.Migrate.Generics
(
defaultMigratableDbSettings
, HasDefaultSqlDataType(..), HasDefaultSqlDataTypeConstraints(..)
, Sql92HasDefaultDataType
) 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 syntax be db.
( Generic (CheckedDatabaseSettings be db)
, GAutoMigratableDb syntax (Rep (CheckedDatabaseSettings be db)) )
=> CheckedDatabaseSettings be db
defaultMigratableDbSettings =
to (defaultMigratableDbSettings' (Proxy @syntax) :: Rep (CheckedDatabaseSettings be db) ())