cfg-0.0.1.0: Type generated application configuration
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cfg.Deriving.Assert

Documentation

class Assert (pred :: Bool) (msg :: ErrorMessage) Source #

Instances

Instances details
(TypeError msg :: ()) ~ '() => Assert 'False msg Source # 
Instance details

Defined in Cfg.Deriving.Assert

Assert 'True msg Source # 
Instance details

Defined in Cfg.Deriving.Assert

type AssertTopLevelRecord (constraint :: Type -> Constraint) a = Assert (IsTopLevelRecord (Rep a)) ((((('Text "\128683 Cannot derive " ':<>: 'ShowType constraint) ':<>: 'Text " instance for ") ':<>: 'ShowType a) ':<>: 'Text " via ConfigRoot") ':$$: 'Text "\128161 ConfigRoot must be derived on a top level record type with named fields.") Source #