Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setFormatYamlParseError :: (FilePath -> ParseException -> String) -> Options -> Options

    hpack Hpack

    This is used to format any ParseExceptions encountered during decoding of defaults. Note that:

    1. This is not used to format ParseExceptions encountered during decoding of the main package.yaml. To customize this you have to set a custom decode function.
    2. Some of the constructors of ParseException are never produced by Hpack (e.g. AesonException as Hpack uses it's own mechanism to decode Values).
    Example:
    example :: IO (Either HpackError Result)
    example = hpackResultWithError options
    where
    options :: Options
    options = setCustomYamlParseErrorFormat format defaultOptions
    
    format :: FilePath -> ParseException -> String
    format file err = file ++ ": " ++ displayException err
    
    setCustomYamlParseErrorFormat :: (FilePath -> ParseException -> String) -> Options -> Options
    setCustomYamlParseErrorFormat format = setDecode decode >>> setFormatYamlParseError format
    where
    decode :: FilePath -> IO (Either String ([String], Value))
    decode file = first (format file) <$> decodeYamlWithParseError file
    

  2. setProgramName :: ProgramName -> Options -> Options

    hpack Hpack

    No documentation available.

  3. setTarget :: FilePath -> Options -> Options

    hpack Hpack

    No documentation available.

  4. setTransactionSettings :: MonadDB m => TransactionSettings -> m ()

    hpqtypes Database.PostgreSQL.PQTypes.Class

    Set transaction settings to supplied ones. Note that it won't change any properties of currently running transaction, only the subsequent ones.

  5. setOption :: SectionName -> OptionName -> OptionValue -> Config -> Config

    hsini Data.Ini

    Sets the value of the option, adding it if it doesn't exist.

  6. setenv :: LuaError e => DocumentedFunction e

    hslua-module-system HsLua.Module.System

    Set the specified environment variable to a new value.

  7. setwd :: LuaError e => DocumentedFunction e

    hslua-module-system HsLua.Module.System

    Change current working directory.

  8. setup :: Config -> LuaE e ()

    hslua-repl HsLua.REPL

    Setup a new repl. Prints the version and extra info before the first prompt.

  9. setAccept :: ByteString -> RequestBuilder ()

    http-common Network.Http.Types

    Indicate the content type you are willing to receive in a reply from the server. For more complex Accept: headers, use setAccept'.

  10. setAccept' :: [(ByteString, Float)] -> RequestBuilder ()

    http-common Network.Http.Types

    Indicate the content types you are willing to receive in a reply from the server in order of preference. A call of the form:

    setAccept' [("text/html", 1.0),
    ("application/xml", 0.8),
    ("*/*", 0)]
    
    will result in an Accept: header value of text/html; q=1.0, application/xml; q=0.8, */*; q=0.0 as you would expect.

Page 444 of many | Previous | Next