Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
synTyConDefn_maybe :: TyCon -> Maybe ([TyVar], Type)liquidhaskell-boot Liquid.GHC.API Extract the TyVars bound by a vanilla type synonym and the corresponding (unsubstituted) right hand side.
synTyConRhs_maybe :: TyCon -> Maybe Typeliquidhaskell-boot Liquid.GHC.API Extract the information pertaining to the right hand side of a type synonym (type) declaration.
topNormaliseType_maybe :: FamInstEnvs -> Type -> Maybe Reductionliquidhaskell-boot Liquid.GHC.API Get rid of *outermost* (or toplevel) * type function redex * data family redex * newtypes returning an appropriate Representational coercion. Specifically, if topNormaliseType_maybe env ty = Just (co, ty') then (a) co :: ty ~R ty' (b) ty' is not a newtype, and is not a type-family or data-family redex However, ty' can be something like (Maybe (F ty)), where (F ty) is a redex. Always operates homogeneously: the returned type has the same kind as the original type, and the returned coercion is always homogeneous.
tyConAppArgs_maybe :: Type -> Maybe [Type]liquidhaskell-boot Liquid.GHC.API The same as snd . splitTyConApp
tyConAppTyCon_maybe :: Type -> Maybe TyConliquidhaskell-boot Liquid.GHC.API The same as fst . splitTyConApp We can short-cut the FunTy case
tyConClass_maybe :: TyCon -> Maybe Classliquidhaskell-boot Liquid.GHC.API If this TyCon is that for a class instance, return the class it is for. Otherwise returns Nothing
tyConDataCons_maybe :: TyCon -> Maybe [DataCon]liquidhaskell-boot Liquid.GHC.API Determine the DataCons originating from the given TyCon, if the TyCon is the sort that can have any constructors (note: this does not include abstract algebraic types)
tyConFamInst_maybe :: TyCon -> Maybe (TyCon, [Type])liquidhaskell-boot Liquid.GHC.API If this TyCon is that of a data family instance, return the family in question and the instance types. Otherwise, return Nothing
tyConSingleDataCon_maybe :: TyCon -> Maybe DataConliquidhaskell-boot Liquid.GHC.API 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.
parseMaybe :: (a -> Parser b) -> a -> Maybe bmicroaeson Data.Aeson.Micro Run Parser. A common use-case is parseMaybe parseJSON.