express-0.1.12: Dynamically-typed expressions involving applications and variables.
Copyright(c) 2019-2021 Rudy Matela
License3-Clause BSD (see the file LICENSE)
MaintainerRudy Matela <rudy@matela.com.br>
Safe HaskellNone
LanguageHaskell2010

Data.Express.Name.Derive

Description

Allows automatic derivation of Name typeclass instances.

Synopsis

Documentation

deriveName :: Name -> DecsQ Source #

Derives a Name instance for the given type Name.

This function needs the TemplateHaskell extension.

deriveNameCascading :: Name -> DecsQ Source #

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

deriveNameIfNeeded :: Name -> DecsQ Source #

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