Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. collectNValBinders_maybe :: Arity -> CoreExpr -> Maybe ([Var], CoreExpr)

    ghc GHC.Core

    Strip off exactly N leading value lambdas returning all the binders found up to that point Return Nothing if there aren't enough

  2. expandUnfolding_maybe :: Unfolding -> Maybe CoreExpr

    ghc GHC.Core

    No documentation available.

  3. getCoVar_maybe :: Coercion -> Maybe CoVar

    ghc GHC.Core.Coercion

    Extract a covar, if possible. This check is dirty. Be ashamed of yourself. (It's dirty because it cares about the structure of a coercion, which is morally reprehensible.)

  4. instNewTyCon_maybe :: TyCon -> [Type] -> Maybe (Type, Coercion)

    ghc GHC.Core.Coercion

    If `instNewTyCon_maybe T ts = Just (rep_ty, co)` then `co :: T ts ~R# rep_ty` Checks for a newtype, and for being saturated

  5. isGReflCo_maybe :: Coercion -> Maybe (Type, Role)

    ghc GHC.Core.Coercion

    Returns the type coerced if this coercion is a generalized reflexive coercion. Guaranteed to work very quickly.

  6. isReflCoVar_maybe :: Var -> Maybe Coercion

    ghc GHC.Core.Coercion

    No documentation available.

  7. isReflCo_maybe :: Coercion -> Maybe (Type, Role)

    ghc GHC.Core.Coercion

    Returns the type coerced if this coercion is reflexive. Guaranteed to work very quickly. Sometimes a coercion can be reflexive, but not obviously so. c.f. isReflexiveCo_maybe

  8. isReflexiveCo_maybe :: Coercion -> Maybe (Type, Role)

    ghc GHC.Core.Coercion

    Extracts the coerced type from a reflexive coercion. This potentially walks over the entire coercion, so avoid doing this in a loop.

  9. setNominalRole_maybe :: Role -> Coercion -> Maybe CoercionN

    ghc GHC.Core.Coercion

    Converts a coercion to be nominal, if possible. See Note [Role twiddling functions]

  10. splitAppCo_maybe :: Coercion -> Maybe (Coercion, Coercion)

    ghc GHC.Core.Coercion

    Attempt to take a coercion application apart.

Page 117 of many | Previous | Next