Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
makeReadsPrec :: Name -> Q Expderiving-compat Text.Read.Deriving Generates a lambda expression which behaves like readsPrec (without requiring a Read instance).
makeReadsPrec1 :: Name -> Q Expderiving-compat Text.Read.Deriving Generates a lambda expression which behaves like readsPrec1 (without requiring a Read1 instance).
makeReadsPrec2 :: Name -> Q Expderiving-compat Text.Read.Deriving Generates a lambda expression which behaves like readsPrec2 (without requiring a Read2 instance). This function is not available with transformers-0.4.
useReadPrec :: ReadOptions -> Boolderiving-compat Text.Read.Deriving If True:
- Derived Read instances will implement readPrec, not readsPrec, and will provide a default implementation of readListPrec in terms of readPrec.
- If built against base-4.10 or later, derived Read1/Read2 instances will implement liftReadPrec/liftReadPrec2, not liftReadsPrec/liftReadsPrec2, and will provide default implementations of liftReadListPrec/liftReadListPrec2 in terms of liftReadPrec/liftReadPrec2. If built against an earlier version of base, derived Read1/Read2 instances are not affected, so they will act as if this flag were False.
- Derived Read instances will implement readsPrec.
- Derived Read1 instances will implement readsPrec1 (if built against transformers-0.4) or liftReadsPrec (otherwise). If not built against transformers-0.4, derived Read2 instances will implement liftReadsPrec2.
defaultReadOptions :: ReadOptionsderiving-compat Text.Read.Deriving.Internal ReadOptions that favor readPrec over readsPrec.
-
deriving-compat Text.Read.Deriving.Internal Generates a Read instance declaration for the given data type or data family instance.
deriveRead1 :: Name -> Q [Dec]deriving-compat Text.Read.Deriving.Internal Generates a Read1 instance declaration for the given data type or data family instance.
deriveRead1Options :: ReadOptions -> Name -> Q [Dec]deriving-compat Text.Read.Deriving.Internal Like deriveRead1, but takes a ReadOptions argument.
deriveRead2 :: Name -> Q [Dec]deriving-compat Text.Read.Deriving.Internal Generates a Read2 instance declaration for the given data type or data family instance. This function is not available with transformers-0.4.
deriveRead2Options :: ReadOptions -> Name -> Q [Dec]deriving-compat Text.Read.Deriving.Internal Like deriveRead2, but takes a ReadOptions argument. This function is not available with transformers-0.4.