Hoogle Search
Within LTS Haskell 24.12 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupName :: [Expr] -> Expr -> Stringexpress Data.Express.Instances O(n+m). Like name but lifted over an instance list and an Expr.
> lookupName preludeNameInstances (val False) "p"
> lookupName preludeNameInstances (val (0::Int)) "x"
This function defaults to "x" when no appropriate name is found.> lookupName [] (val False) "x"
lookupNames :: [Expr] -> Expr -> [String]express Data.Express.Instances O(n+m). A mix between lookupName and names: this returns an infinite list of names based on an instances list and an Expr.
lookupId :: Eq a => a -> [(a, a)] -> aexpress Data.Express.Utils.List O(n). Like lookup but returns the key itself if nothing is found.
> lookupId 5 [(1,2),(3,4)] 5
> lookupId 5 [(1,2),(3,4),(5,6)] 6
lookupValN :: String -> Q Nameexpress Data.Express.Utils.TH Lookups the name of a value throwing an error when it is not found.
> putStrLn $(stringE . show =<< lookupValN "show") 'show
lookupAssertTyCon :: TcPluginM (Maybe TyCon)ghc-typelits-presburger GHC.TypeLits.Presburger.Compat No documentation available.
lookupBool47 :: String -> TcPluginM (Maybe TyCon)ghc-typelits-presburger GHC.TypeLits.Presburger.Compat No documentation available.
lookupModule :: ModuleName -> FastString -> TcPluginM Moduleghc-typelits-presburger GHC.TypeLits.Presburger.Compat Find a module
lookupName :: Module -> OccName -> TcPluginM Nameghc-typelits-presburger GHC.TypeLits.Presburger.Compat lookupOrig :: Module -> OccName -> TcPluginM Nameghc-typelits-presburger GHC.TypeLits.Presburger.Compat No documentation available.
lookupPackageName :: UnitState -> PackageName -> Maybe UnitIdghc-typelits-presburger GHC.TypeLits.Presburger.Compat Find the unit we know about with the given package name (e.g. foo), if any (NB: there might be a locally defined unit name which overrides this) This function is unsafe to use in general because it doesn't respect package visibility.