Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupRecUpdFields :: NonEmpty (LHsRecUpdField GhcPs GhcPs) -> RnM (NonEmpty (HsRecUpdParent GhcRn))ghc GHC.Rename.Env Returns all possible collections of field labels for the given record update. Example: data D = MkD { fld1 :: Int, fld2 :: Bool } data E = MkE1 { fld1 :: Int, fld2 :: Bool, fld3 :: Char } | MkE2 { fld1 :: Int, fld2 :: Bool } data F = MkF1 { fld1 :: Int } | MkF2 { fld2 :: Bool } f r = r { fld1 = a, fld2 = b } This function will return:
- [ D.fld1, D.fld2 -- could be a record update at type D , [ E.fld1, E.fld2 ] -- could be a record update at type E ] -- cannot be a record update at type F: no constructor has both -- of the fields fld1 and fld2
lookupSameOccRn_maybe :: RdrName -> RnM (Maybe Name)ghc GHC.Rename.Env No documentation available.
-
ghc GHC.Rename.Env Lookup a name in relation to the names in a HsSigCtxt
lookupSigOccRn :: HsSigCtxt -> Sig GhcPs -> LocatedA RdrName -> RnM (LocatedA Name)ghc GHC.Rename.Env No documentation available.
lookupSigOccRnN :: HsSigCtxt -> Sig GhcPs -> LocatedN RdrName -> RnM (LocatedN Name)ghc GHC.Rename.Env No documentation available.
-
ghc GHC.Rename.Env Used in export lists to lookup the children.
lookupSyntax :: Name -> RnM (SyntaxExpr GhcRn, FreeVars)ghc GHC.Rename.Env No documentation available.
lookupSyntaxExpr :: Name -> RnM (HsExpr GhcRn, FreeVars)ghc GHC.Rename.Env No documentation available.
lookupSyntaxName :: Name -> RnM (Name, FreeVars)ghc GHC.Rename.Env No documentation available.
lookupSyntaxNames :: [Name] -> RnM ([HsExpr GhcRn], FreeVars)ghc GHC.Rename.Env No documentation available.