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.

  1. makeReadsPrec :: Name -> Q Exp

    deriving-compat Text.Read.Deriving

    Generates a lambda expression which behaves like readsPrec (without requiring a Read instance).

  2. makeReadsPrec1 :: Name -> Q Exp

    deriving-compat Text.Read.Deriving

    Generates a lambda expression which behaves like readsPrec1 (without requiring a Read1 instance).

  3. makeReadsPrec2 :: Name -> Q Exp

    deriving-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.

  4. useReadPrec :: ReadOptions -> Bool

    deriving-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.
    If 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.
    It's generally a good idea to enable this option, since readPrec and friends are more efficient than readsPrec and friends, since the former use the efficient ReadPrec parser datatype while the latter use the slower, list-based ReadS type.

  5. defaultReadOptions :: ReadOptions

    deriving-compat Text.Read.Deriving.Internal

    ReadOptions that favor readPrec over readsPrec.

  6. deriveRead :: Name -> Q [Dec]

    deriving-compat Text.Read.Deriving.Internal

    Generates a Read instance declaration for the given data type or data family instance.

  7. deriveRead1 :: Name -> Q [Dec]

    deriving-compat Text.Read.Deriving.Internal

    Generates a Read1 instance declaration for the given data type or data family instance.

  8. deriveRead1Options :: ReadOptions -> Name -> Q [Dec]

    deriving-compat Text.Read.Deriving.Internal

    Like deriveRead1, but takes a ReadOptions argument.

  9. 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.

  10. 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.

Page 525 of many | Previous | Next