code-conjure-0.6.2: synthesize Haskell functions out of partial definitions
Copyright(c) 2019-2025 Rudy Matela
License3-Clause BSD (see the file LICENSE)
MaintainerRudy Matela <rudy@matela.com.br>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Conjure.Conjurable.Derive

Description

Allows automatic derivation of Conjurable typeclass instances.

Synopsis

Documentation

deriveConjurable :: Name -> DecsQ Source #

Derives an Conjurable instance for the given type Name.

This function needs the TemplateHaskell extension.

If the Data.Express' type binding operators (-:, ->: or ->>:) are not in scope, this derives them as well.

deriveConjurableCascading :: Name -> DecsQ Source #

Derives a Conjurable instance for a given type Name cascading derivation of type arguments as well.

deriveConjurableIfNeeded :: Name -> DecsQ Source #

Same as deriveConjurable but does not warn when instance already exists (deriveConjurable is preferable).