Modulegeneric-data-1.1.0.2Haskell2010
Generic.Data.Internal.Error
Error messages.
Warning
This is an internal module: it is not subject to any versioning policy, breaking changes can happen at any time.
If something here seems useful, please report it or create a pull request to export it from an external module.
- 1 type
- 1 class
- Packagegeneric-data-1.1.0.2
- Exports3
- LanguageHaskell2010
- LicenceMIT
- SourceError.hs
type
type AssertNoSum (constraint :: Type -> Constraint) a = Assert (Not (HasSum (Rep a))) (((('Text "Cannot derive "
':<>: 'ShowType constraint) ':<>: 'Text " instance for "
) ':<>: 'ShowType a) ':<>: 'Text " due to sum type"
):set -XDeriveGeneric -XDerivingViaimport Generic.Data (Generically(..)):{ data AB = A | B deriving stock Generic deriving Semigroup via Generically AB:}... • Cannot derive Semigroup instance for AB due to sum type • When deriving the instance for (Semigroup AB)