Hoogle Search
Within LTS Haskell 24.61 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupPluginModuleWithSuggestions :: UnitState -> ModuleName -> PkgQual -> LookupResultghc GHC.Unit.State No documentation available.
lookupUnit :: UnitState -> Unit -> Maybe UnitInfoghc GHC.Unit.State Find the unit we know about with the given unit, if any
lookupUnit' :: Bool -> UnitInfoMap -> PreloadUnitClosure -> Unit -> Maybe UnitInfoghc GHC.Unit.State A more specialized interface, which doesn't require a UnitState (so it can be used while we're initializing DynFlags) Parameters: * a boolean specifying whether or not to look for on-the-fly renamed interfaces * a UnitInfoMap * a PreloadUnitClosure
lookupUnitId :: UnitState -> UnitId -> Maybe UnitInfoghc GHC.Unit.State Find the unit we know about with the given unit id, if any
lookupUnitId' :: UnitInfoMap -> UnitId -> Maybe UnitInfoghc GHC.Unit.State Find the unit we know about with the given unit id, if any
lookupByConstructorName :: Name -> DatatypeInfo -> ConstructorInfoth-abstraction Language.Haskell.TH.Datatype Given a DatatypeInfo, find the ConstructorInfo corresponding to the Name of one of its constructors.
lookupByRecordName :: Name -> DatatypeInfo -> ConstructorInfoth-abstraction Language.Haskell.TH.Datatype Given a DatatypeInfo, find the ConstructorInfo corresponding to the Name of one of its constructors.
lookupAll :: Text -> Form -> [Text]http-api-data Web.FormUrlEncoded Find all values corresponding to a given key in a Form.
>>> lookupAll "name" [] [] >>> lookupAll "name" [("name", "Oleg")] ["Oleg"] >>> lookupAll "name" [("name", "Oleg"), ("name", "David")] ["Oleg","David"]lookupMaybe :: Text -> Form -> Either Text (Maybe Text)http-api-data Web.FormUrlEncoded Lookup an optional value for a key. Fail if there is more than one value.
>>> lookupMaybe "name" [] Right Nothing >>> lookupMaybe "name" [("name", "Oleg")] Right (Just "Oleg") >>> lookupMaybe "name" [("name", "Oleg"), ("name", "David")] Left "Duplicate key \"name\""lookupUnique :: Text -> Form -> Either Text Texthttp-api-data Web.FormUrlEncoded Lookup a unique value for a key. Fail if there is zero or more than one value.
>>> lookupUnique "name" [] Left "Could not find key \"name\"" >>> lookupUnique "name" [("name", "Oleg")] Right "Oleg" >>> lookupUnique "name" [("name", "Oleg"), ("name", "David")] Left "Duplicate key \"name\""