Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
deriveUnifiedSymOrd1 :: DeriveConfig -> Name -> Q [Dec]grisette Grisette.Internal.TH.Derivation.DeriveUnifiedSymOrd Derive UnifiedSymOrd1 instance for a data type.
deriveUnifiedSymOrd2 :: DeriveConfig -> Name -> Q [Dec]grisette Grisette.Internal.TH.Derivation.DeriveUnifiedSymOrd Derive UnifiedSymOrd2 instance for a data type.
deriveWith :: DeriveConfig -> [Name] -> [Name] -> Q [Dec]grisette Grisette.TH Derive the specified classes for a data type with the given name. Support the following classes for both vanilla data types and GADTs.
- Mergeable
- Mergeable1
- Mergeable2
- Mergeable3
- EvalSym
- EvalSym1
- EvalSym2
- ExtractSym
- ExtractSym1
- ExtractSym2
- SubstSym
- SubstSym1
- SubstSym2
- NFData
- NFData1
- NFData2
- Hashable (will fail to derive if the type contains any symbolic variables)
- Hashable1 (will fail to derive if the type contains any symbolic variables)
- Hashable2 (will fail to derive if the type contains any symbolic variables)
- Show
- Show1
- Show2
- PPrint
- PPrint1
- PPrint2
- AllSyms
- AllSyms1
- AllSyms2
- Eq
- Eq1
- Eq2
- Ord (will fail to derive if the type contains any symbolic variables)
- Ord1 (will fail to derive if the type contains any symbolic variables)
- Ord2 (will fail to derive if the type contains any symbolic variables)
- SymOrd
- SymOrd1
- SymOrd2
- SymEq
- SymEq1
- SymEq2
- UnifiedSymEq
- UnifiedSymEq1
- UnifiedSymEq2
- UnifiedSymOrd
- UnifiedSymOrd1
- UnifiedSymOrd2
- ToSym
- ToSym1
- ToSym2
- ToCon
- ToCon1
- ToCon2
- Serial
- Serial1
- Serial2
- SimpleMergeable
- SimpleMergeable1
- SimpleMergeable2
- Binary
- Serialize
deriveTypeToText :: DeriveType -> Texthaskoin-store-data Haskoin.Store.Data No documentation available.
derivePersistField :: String -> Q [Dec]hledger-web Hledger.Web.Import Automatically creates a valid PersistField instance for any datatype that has valid Show and Read instances. Can be very convenient for Enum types.
derivePersistFieldJSON :: String -> Q [Dec]hledger-web Hledger.Web.Import Automatically creates a valid PersistField instance for any datatype that has valid ToJSON and FromJSON instances. For a datatype T it generates instances similar to these:
instance PersistField T where toPersistValue = PersistByteString . L.toStrict . encode fromPersistValue = (left T.pack) . eitherDecodeStrict' <=< fromPersistValue instance PersistFieldSql T where sqlType _ = SqlString
deriveLargeHashable :: Name -> Q [Dec]large-hashable Data.LargeHashable No documentation available.
deriveLargeHashableCtx :: Name -> ([TypeQ] -> [PredQ]) -> Q [Dec]large-hashable Data.LargeHashable Derive a LargeHashable instance with extra constraints in the context of the instance.
deriveLargeHashableCustomCtx :: Name -> ([TypeQ] -> [PredQ] -> [PredQ]) -> Q [Dec]large-hashable Data.LargeHashable Derive a LargeHashable instance with a completely custom instance context.
deriveLargeHashableNoCtx :: Name -> Q [Dec]large-hashable Data.LargeHashable Derive a LargeHashable instance with no constraints in the context of the instance.