Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. rFormat :: Reader (m :: Type -> Type) -> StorageFormat

    hledger-lib Hledger.Read.Common

    No documentation available.

  2. mformat :: HasInputOpts c => Lens' c (Maybe StorageFormat)

    hledger-lib Hledger.Read.InputOptions

    No documentation available.

  3. mformat_ :: InputOpts -> Maybe StorageFormat

    hledger-lib Hledger.Read.InputOptions

    a file/storage format to try, unless overridden by a filename prefix. Nothing means try all.

  4. dataFileFor :: FilePath -> Maybe FilePath

    hledger-lib Hledger.Read.RulesReader

    Given a rules file path, what would be the corresponding data file ? (Remove a .rules extension.)

  5. rulesFileFor :: FilePath -> FilePath

    hledger-lib Hledger.Read.RulesReader

    Given a csv file path, what would be the corresponding rules file ? (Add a .rules extension.)

  6. cbcsubreporttransform :: CBCSubreportSpec a -> PeriodicReport DisplayName MixedAmount -> PeriodicReport a MixedAmount

    hledger-lib Hledger.Reports.ReportTypes

    A function to transform the result of the subreport

  7. ansiFormatError :: String -> String

    hledger-lib Hledger.Utils.IO

    Apply standard ANSI SGR formatting (red, bold) suitable for console error text.

  8. ansiFormatWarning :: String -> String

    hledger-lib Hledger.Utils.IO

    Apply standard ANSI SGR formatting (yellow, bold) suitable for console warning text.

  9. quoteForCommandLine :: String -> String

    hledger-lib Hledger.Utils.String

    Try to single- and backslash-quote a string as needed to make it usable as an argument on a (sh/bash) shell command line. At least, well enough to handle common currency symbols, like $. Probably broken in many ways.

    >>> quoteForCommandLine "a"
    "a"
    
    >>> quoteForCommandLine "\""
    "'\"'"
    
    >>> quoteForCommandLine "$"
    "'\\$'"
    

  10. encodedFormBody :: [(ByteString, ByteString)] -> OutputStream Builder -> IO ()

    http-streams Network.Http.Client

    Specify name/value pairs to be sent to the server in the manner used by web browsers when submitting a form via a POST request. Parameters will be URL encoded per RFC 2396 and combined into a single string which will be sent as the body of your request. You use this partially applied:

    let nvs = [("name","Kermit"),
    ("type","frog")]
    ("role","stagehand")]
    
    sendRequest c q (encodedFormBody nvs)
    
    Note that it's going to be up to you to call setContentType with a value of "application/x-www-form-urlencoded" when building the Request object; the postForm convenience (which uses this encodedFormBody function) takes care of this for you, obviously.

Page 645 of many | Previous | Next