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. lookupKnownProgram :: String -> ProgramDb -> Maybe Program

    Cabal Distribution.Simple.Program.Db

    No documentation available.

  2. lookupProgram :: Program -> ProgramDb -> Maybe ConfiguredProgram

    Cabal Distribution.Simple.Program.Db

    Try to find a configured program

  3. lookupProgramByName :: String -> ProgramDb -> Maybe ConfiguredProgram

    Cabal Distribution.Simple.Program.Db

    Try to find a configured program

  4. lookupProgramVersion :: Verbosity -> Program -> VersionRange -> ProgramDb -> IO (Either CabalException (ConfiguredProgram, Version, ProgramDb))

    Cabal Distribution.Simple.Program.Db

    Check that a program is configured and available to be run. Additionally check that the program version number is suitable and return it. For example you could require AnyVersion or orLaterVersion (Version [1,0] []) It returns the configured program, its version number and a possibly updated ProgramDb. If the program could not be configured or the version is unsuitable, it returns an error value.

  5. lookupByConstructorName :: Name -> DatatypeInfo -> ConstructorInfo

    th-abstraction Language.Haskell.TH.Datatype

    Given a DatatypeInfo, find the ConstructorInfo corresponding to the Name of one of its constructors.

  6. lookupByRecordName :: Name -> DatatypeInfo -> ConstructorInfo

    th-abstraction Language.Haskell.TH.Datatype

    Given a DatatypeInfo, find the ConstructorInfo corresponding to the Name of one of its constructors.

  7. 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"]
    

  8. 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\""
    

  9. lookupUnique :: Text -> Form -> Either Text Text

    http-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\""
    

  10. lookupAll :: Text -> Form -> [Text]

    http-api-data Web.Internal.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"]
    

Page 65 of many | Previous | Next