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.
setFormatYamlParseError :: (FilePath -> ParseException -> String) -> Options -> Optionshpack Hpack This is used to format any ParseExceptions encountered during decoding of defaults. Note that:
- 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.
- 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 :: 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
setProgramName :: ProgramName -> Options -> Optionshpack Hpack No documentation available.
setTarget :: FilePath -> Options -> Optionshpack Hpack No documentation available.
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.
setOption :: SectionName -> OptionName -> OptionValue -> Config -> Confighsini Data.Ini Sets the value of the option, adding it if it doesn't exist.
setenv :: LuaError e => DocumentedFunction ehslua-module-system HsLua.Module.System Set the specified environment variable to a new value.
setwd :: LuaError e => DocumentedFunction ehslua-module-system HsLua.Module.System Change current working directory.
-
hslua-repl HsLua.REPL Setup a new repl. Prints the version and extra info before the first prompt.
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'.
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.