{-# language FlexibleContexts #-}
{-# language FlexibleInstances #-}
{-# language MultiParamTypeClasses #-}
{-# language StandaloneKindSignatures #-}
{-# language UndecidableInstances #-}
module Rel8.Type.String
( DBString
)
where
import Data.Kind ( Constraint, Type )
import Prelude ()
import Data.ByteString ( ByteString )
import qualified Data.ByteString.Lazy as Lazy ( ByteString )
import Data.CaseInsensitive ( CI )
import Rel8.Type ( DBType )
import Data.Text ( Text )
import qualified Data.Text.Lazy as Lazy ( Text )
type DBString :: Type -> Constraint
class DBType a => DBString a
instance DBString Text
instance DBString Lazy.Text
instance DBString (CI Text)
instance DBString (CI Lazy.Text)
instance DBString ByteString
instance DBString Lazy.ByteString