{-# language DataKinds #-}
{-# language FlexibleContexts #-}
{-# language FlexibleInstances #-}
{-# language MultiParamTypeClasses #-}
{-# language StandaloneKindSignatures #-}
{-# language TypeFamilies #-}
{-# language UndecidableInstances #-}
module Rel8.Type.Num
( DBNum, DBIntegral, DBFractional, DBFloating
)
where
import Data.Int ( Int16, Int32, Int64 )
import Data.Kind ( Constraint, Type )
import Prelude
import Rel8.Type ( DBType )
import Data.Scientific ( Scientific )
type DBNum :: Type -> Constraint
class DBType a => DBNum a
instance DBNum Int16
instance DBNum Int32
instance DBNum Int64
instance DBNum Float
instance DBNum Double
instance DBNum Scientific
type DBIntegral :: Type -> Constraint
class DBNum a => DBIntegral a
instance DBIntegral Int16
instance DBIntegral Int32
instance DBIntegral Int64
class DBNum a => DBFractional a
instance DBFractional Float
instance DBFractional Double
instance DBFractional Scientific
class DBFractional a => DBFloating a
instance DBFloating Float
instance DBFloating Double