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.
deriveBifoldable :: Name -> Q [Dec]bifunctors Data.Bifunctor.TH Generates a Bifoldable instance declaration for the given data type or data family instance.
deriveBifoldableOptions :: Options -> Name -> Q [Dec]bifunctors Data.Bifunctor.TH Like deriveBifoldable, but takes an Options argument.
deriveBifunctor :: Name -> Q [Dec]bifunctors Data.Bifunctor.TH Generates a Bifunctor instance declaration for the given data type or data family instance.
deriveBifunctorOptions :: Options -> Name -> Q [Dec]bifunctors Data.Bifunctor.TH Like deriveBifunctor, but takes an Options argument.
deriveBitraversable :: Name -> Q [Dec]bifunctors Data.Bifunctor.TH Generates a Bitraversable instance declaration for the given data type or data family instance.
deriveBitraversableOptions :: Options -> Name -> Q [Dec]bifunctors Data.Bifunctor.TH Like deriveBitraversable, but takes an Options argument.
derivePersistField :: String -> Q [Dec]persistent Database.Persist.TH 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]persistent Database.Persist.TH 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
derivePersistField :: String -> Q [Dec]persistent Database.Persist.TH.Internal 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]persistent Database.Persist.TH.Internal 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