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.

  1. lookupName :: [Expr] -> Expr -> String

    express 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"
    

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

  3. lookupId :: Eq a => a -> [(a, a)] -> a

    express 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
    

  4. lookupValN :: String -> Q Name

    express Data.Express.Utils.TH

    Lookups the name of a value throwing an error when it is not found.

    > putStrLn $(stringE . show =<< lookupValN "show")
    'show
    

  5. lookupAssertTyCon :: TcPluginM (Maybe TyCon)

    ghc-typelits-presburger GHC.TypeLits.Presburger.Compat

    No documentation available.

  6. lookupBool47 :: String -> TcPluginM (Maybe TyCon)

    ghc-typelits-presburger GHC.TypeLits.Presburger.Compat

    No documentation available.

  7. lookupModule :: ModuleName -> FastString -> TcPluginM Module

    ghc-typelits-presburger GHC.TypeLits.Presburger.Compat

    Find a module

  8. lookupName :: Module -> OccName -> TcPluginM Name

    ghc-typelits-presburger GHC.TypeLits.Presburger.Compat

    Find a Name in a Module given an OccName

  9. lookupOrig :: Module -> OccName -> TcPluginM Name

    ghc-typelits-presburger GHC.TypeLits.Presburger.Compat

    No documentation available.

  10. lookupPackageName :: UnitState -> PackageName -> Maybe UnitId

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

Page 96 of many | Previous | Next