Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
tyConRepName_maybe :: TyCon -> Maybe TyConRepNameghc-lib-parser GHC.Core.TyCon No documentation available.
tyConSingleAlgDataCon_maybe :: TyCon -> Maybe DataConghc-lib-parser GHC.Core.TyCon Like tyConSingleDataCon_maybe, but returns Nothing for newtypes.
tyConSingleDataCon_maybe :: TyCon -> Maybe DataConghc-lib-parser 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.
tyConTuple_maybe :: TyCon -> Maybe TupleSortghc-lib-parser GHC.Core.TyCon No documentation available.
unwrapNewTyConEtad_maybe :: TyCon -> Maybe ([TyVar], Type, CoAxiom Unbranched)ghc-lib-parser GHC.Core.TyCon No documentation available.
unwrapNewTyCon_maybe :: TyCon -> Maybe ([TyVar], Type, CoAxiom Unbranched)ghc-lib-parser 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.
mapMaybeDTyConEnv :: (a -> Maybe b) -> DTyConEnv a -> DTyConEnv bghc-lib-parser GHC.Core.TyCon.Env No documentation available.
anonPiTyBinderType_maybe :: PiTyBinder -> Maybe Typeghc-lib-parser GHC.Core.Type Extract a relevant type, if there is one.
deepUserTypeError_maybe :: Type -> Maybe ErrorMsgTypeghc-lib-parser GHC.Core.Type No documentation available.
expandSynTyConApp_maybe :: TyCon -> [Type] -> Maybe Typeghc-lib-parser GHC.Core.Type expandSynTyConApp_maybe tc tys expands the RHS of type synonym tc instantiated at arguments tys, or returns Nothing if tc is not a synonym.