Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
deriveConjurableIfNeeded :: Name -> DecsQcode-conjure Conjure Same as deriveConjurable but does not warn when instance already exists (deriveConjurable is preferable).
deriveConjurable :: Name -> DecsQcode-conjure Conjure.Conjurable.Derive Derives an Conjurable instance for the given type Name. If not already present, this also derives Listable, Express and Name instances. If the Data.Express' type binding operators (-:, ->: or ->>:) are not in scope, this derives them as well. This function needs the TemplateHaskell extension. You can place the following at the top of the file:
{-# LANGUAGE TemplateHaskell #-} import Conjure import Test.LeanCheckThen just call deriveConjurable after your data type declaration:data Peano = Z | S Peano deriving (Show, Eq) deriveConjurable ''Peano
deriveConjurable expects the argument type to be an instance of Show and Eq.deriveConjurableCascading :: Name -> DecsQcode-conjure Conjure.Conjurable.Derive Derives a Conjurable instance for a given type Name cascading derivation of type arguments as well.
deriveConjurableIfNeeded :: Name -> DecsQcode-conjure Conjure.Conjurable.Derive Same as deriveConjurable but does not warn when instance already exists (deriveConjurable is preferable).
deriveExpress :: Name -> DecsQcode-conjure Conjure.Engine Derives an Express instance for the given type Name. This function needs the TemplateHaskell extension. If -:, ->:, ->>:, ->>>:, ... are not in scope, this will derive them as well.
deriveExpressCascading :: Name -> DecsQcode-conjure Conjure.Engine Derives a Express instance for a given type Name cascading derivation of type arguments as well.
deriveExpressIfNeeded :: Name -> DecsQcode-conjure Conjure.Engine Same as deriveExpress but does not warn when instance already exists (deriveExpress is preferable).
-
code-conjure Conjure.Engine Derives a Name instance for the given type Name. This function needs the TemplateHaskell extension.
deriveNameCascading :: Name -> DecsQcode-conjure Conjure.Engine Derives a Name instance for a given type Name cascading derivation of type arguments as well.
deriveNameIfNeeded :: Name -> DecsQcode-conjure Conjure.Engine Same as deriveName but does not warn when instance already exists (deriveName is preferable).