Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
deriveSerialize :: Q [Dec] -> Q [Dec]streamly-core Streamly.Data.MutByteArray Given an Serialize instance declaration splice without the methods (e.g. [d|instance Serialize a => Serialize (Maybe a)|]), generate an instance declaration including all the type class method implementations.
>>> deriveSerialize = deriveSerializeWith id
Usage:$(deriveSerialize [d|instance Serialize a => Serialize (Maybe a)|])
deriveSerializeWith :: (SerializeConfig -> SerializeConfig) -> Q [Dec] -> Q [Dec]streamly-core Streamly.Data.MutByteArray deriveSerializeWith config-modifier instance-dec generates a template Haskell splice consisting of a declaration of a Serialize instance. instance-dec is a template Haskell declaration splice consisting of a standard Haskell instance declaration without the type class methods (e.g. [d|instance Serialize a => Serialize (Maybe a)|]). The type class methods for the given instance are generated according to the supplied config-modifier parameter. See SerializeConfig for default configuration settings. Usage:
$(deriveSerializeWith ( inlineSerializeAt (Just NoInline) . inlineDeserializeAt (Just NoInline) ) [d|instance Serialize a => Serialize (Maybe a)|])
deriveUnbox :: Q [Dec] -> Q [Dec]streamly-core Streamly.Data.MutByteArray Given an Unbox instance declaration splice without the methods (e.g. [d|instance Unbox a => Unbox (Maybe a)|]), generate an instance declaration including all the type class method implementations. Usage:
$(deriveUnbox [d|instance Unbox a => Unbox (Maybe a)|])
deriveSerialize :: Q [Dec] -> Q [Dec]streamly-core Streamly.Internal.Data.MutByteArray Given an Serialize instance declaration splice without the methods (e.g. [d|instance Serialize a => Serialize (Maybe a)|]), generate an instance declaration including all the type class method implementations.
>>> deriveSerialize = deriveSerializeWith id
Usage:$(deriveSerialize [d|instance Serialize a => Serialize (Maybe a)|])
deriveSerializeWith :: (SerializeConfig -> SerializeConfig) -> Q [Dec] -> Q [Dec]streamly-core Streamly.Internal.Data.MutByteArray deriveSerializeWith config-modifier instance-dec generates a template Haskell splice consisting of a declaration of a Serialize instance. instance-dec is a template Haskell declaration splice consisting of a standard Haskell instance declaration without the type class methods (e.g. [d|instance Serialize a => Serialize (Maybe a)|]). The type class methods for the given instance are generated according to the supplied config-modifier parameter. See SerializeConfig for default configuration settings. Usage:
$(deriveSerializeWith ( inlineSerializeAt (Just NoInline) . inlineDeserializeAt (Just NoInline) ) [d|instance Serialize a => Serialize (Maybe a)|])
deriveUnbox :: Q [Dec] -> Q [Dec]streamly-core Streamly.Internal.Data.MutByteArray Given an Unbox instance declaration splice without the methods (e.g. [d|instance Unbox a => Unbox (Maybe a)|]), generate an instance declaration including all the type class method implementations. Usage:
$(deriveUnbox [d|instance Unbox a => Unbox (Maybe a)|])
deriveEnumerable :: Name -> Q [Dec]testing-feat Test.Feat No documentation available.
deriveEnumerable :: Name -> Q [Dec]testing-feat Test.Feat.Class No documentation available.
deriveInstanceIfNecessary :: Monoid w => Name -> (Name -> Q w) -> WriterT w Q ()aeson-typescript Data.Aeson.TypeScript.Recursive No documentation available.
deriveJSONAndTypeScript :: Options -> Name -> Q [Dec]aeson-typescript Data.Aeson.TypeScript.TH Convenience function to generate ToJSON, FromJSON, and TypeScript instances simultaneously, so the instances are guaranteed to be in sync. This function is given mainly as an illustration. If you want some other permutation of instances, such as ToJSON and TypeScript only, just take a look at the source and write your own version.