Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. tyConSingleAlgDataCon_maybe :: TyCon -> Maybe DataCon

    ghc GHC.Core.TyCon

    Like tyConSingleDataCon_maybe, but returns Nothing for newtypes.

  2. tyConSingleDataCon_maybe :: TyCon -> Maybe DataCon

    ghc GHC.Core.TyCon

    If the given TyCon has a single data constructor, i.e. it is a data type with one alternative, a tuple type or a newtype then that constructor is returned. If the TyCon has more than one constructor, or represents a primitive or function type constructor then Nothing is returned.

  3. tyConTuple_maybe :: TyCon -> Maybe TupleSort

    ghc GHC.Core.TyCon

    No documentation available.

  4. unwrapNewTyConEtad_maybe :: TyCon -> Maybe ([TyVar], Type, CoAxiom Unbranched)

    ghc GHC.Core.TyCon

    No documentation available.

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

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

    ghc GHC.Core.TyCon.Env

    No documentation available.

  7. anonPiTyBinderType_maybe :: PiTyBinder -> Maybe Type

    ghc GHC.Core.Type

    Extract a relevant type, if there is one.

  8. deepUserTypeError_maybe :: Type -> Maybe ErrorMsgType

    ghc GHC.Core.Type

    No documentation available.

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

    ghc GHC.Core.Type

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

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

Page 123 of many | Previous | Next