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. unwrapNewTyCon_maybe :: TyCon -> Maybe ([TyVar], Type, CoAxiom Unbranched)

    ghc GHC.Core.TyCon

    Take a TyCon apart into the TyVars it scopes over, the Type it expands into, and (possibly) a coercion from the representation type to the newtype. Returns Nothing if this is not possible.

  2. mapMaybeDTyConEnv :: (a -> Maybe b) -> DTyConEnv a -> DTyConEnv b

    ghc GHC.Core.TyCon.Env

    No documentation available.

  3. anonPiTyBinderType_maybe :: PiTyBinder -> Maybe Type

    ghc GHC.Core.Type

    Extract a relevant type, if there is one.

  4. deepUserTypeError_maybe :: Type -> Maybe ErrorMsgType

    ghc GHC.Core.Type

    No documentation available.

  5. funTyConAppTy_maybe :: FunTyFlag -> Type -> Type -> Type -> Maybe (TyCon, [Type])

    ghc GHC.Core.Type

    Given the components of a FunTy figure out the corresponding TyConApp.

  6. getCastedTyVar_maybe :: Type -> Maybe (TyVar, CoercionN)

    ghc GHC.Core.Type

    If the type is a tyvar, possibly under a cast, returns it, along with the coercion. Thus, the co is :: kind tv ~N kind ty

  7. getTyVar_maybe :: Type -> Maybe TyVar

    ghc GHC.Core.Type

    Attempts to obtain the type variable underlying a Type

  8. isCoercionTy_maybe :: Type -> Maybe Coercion

    ghc GHC.Core.Type

    No documentation available.

  9. kindBoxedRepLevity_maybe :: Type -> Maybe Levity

    ghc GHC.Core.Type

    Check whether a kind is of the form `TYPE (BoxedRep Lifted)` or `TYPE (BoxedRep Unlifted)`. Returns:

    • `Just Lifted` for `TYPE (BoxedRep Lifted)` and Type,
    • `Just Unlifted` for `TYPE (BoxedRep Unlifted)` and UnliftedType,
    • Nothing for anything else, e.g. `TYPE IntRep`, `TYPE (BoxedRep l)`, etc.

  10. kindRep_maybe :: HasDebugCallStack => Kind -> Maybe RuntimeRepType

    ghc GHC.Core.Type

    Given a kind (TYPE rr) or (CONSTRAINT rr), extract its RuntimeRep classifier rr. For example, kindRep_maybe * = Just LiftedRep Returns Nothing if the kind is not of form (TYPE rr)

Page 123 of many | Previous | Next