sqel-0.0.1.0: Guided derivation for Hasql statements
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sqel.SOP.Newtype

Documentation

type NoGenericError a = (((("The type " <> QuotedType a) <> " does not have an instance of ") <> Quoted "Generic") <> ".") % ("You can add it like this:" % (Quoted "newtype MyType = MyType Text deriving Generic" % (((("If you want to use " <> Quoted "Coercible") <> " instead, use ") <> Quoted "primCoerce") <> "."))) Source #

type NotNewtypeError a = ("The type " <> QuotedType a) <> " is not a newtype." Source #

class UN_CheckNewtype err ass info a w | ass info a -> w where Source #

Instances

Instances details
UN_CheckNewtype err '['[w]] ('Newtype mn dn ci) a w Source # 
Instance details

Defined in Sqel.SOP.Newtype

class UN_CheckGeneric errHead err ass info a w | ass info a -> w where Source #

Instances

Instances details
(err ~ (DelayError (errHead % NotNewtypeError a) :: Void), UN_CheckNewtype err ('[] :: [[Type]]) info a w) => UN_CheckGeneric errHead genErr ('[] :: [[Type]]) info a w Source # 
Instance details

Defined in Sqel.SOP.Newtype

(err ~ (DelayError (errHead % NotNewtypeError a) :: Void), UN_CheckNewtype err (x ': xs) info a w) => UN_CheckGeneric errHead genErr (x ': xs) info a w Source # 
Instance details

Defined in Sqel.SOP.Newtype

class UnwrapNewtype errHead a w | a -> w where Source #

Methods

unwrapNewtype :: a -> w Source #

wrapNewtype :: w -> a Source #

Instances

Instances details
(HasGeneric a flag, err ~ (DelayError (errHead % NoGenericError a) :: Void), UN_CheckGeneric errHead err (GCode a) (GDatatypeInfoOf a) a w) => UnwrapNewtype errHead a w Source # 
Instance details

Defined in Sqel.SOP.Newtype

Methods

unwrapNewtype :: a -> w Source #

wrapNewtype :: w -> a Source #