Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. sumEncoding :: SchemaOptions -> SumEncoding

    openapi3 Data.OpenApi.SchemaOptions

    Specifies how to encode constructors of a sum datatype.

  2. sum' :: (Foldable t, Semiring a) => t a -> a

    semirings Data.Semiring

    The sum' function computes the additive sum of the elements in a structure. This function is strict. For a lazy version, see sum.

  3. sumAccounts :: Account -> Account

    hledger-lib Hledger.Data.Account

    Add subaccount-inclusive balances to an account tree.

  4. sumPostings :: [Posting] -> MixedAmount

    hledger-lib Hledger.Data.Posting

    Sum all amounts from a list of postings.

  5. summary_only :: HasReportOptsNoUpdate c => Lens' c Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  6. summary_only_ :: ReportOpts -> Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  7. sumStrict :: Num a => [a] -> a

    hledger-lib Hledger.Utils

    Strict version of sum that doesn’t leak space

  8. sum1 :: C a => [a] -> a

    numeric-prelude Algebra.Additive

    Sum up all elements of a non-empty list. This avoids including a zero which is useful for types where no universal zero is available. ToDo: Should have NonEmpty type.

    \(QC.NonEmpty ns) -> A.sum ns == (A.sum1 ns :: Integer)
    

  9. sumNestedAssociative :: C a => [a] -> a

    numeric-prelude Algebra.Additive

    Sum the operands in an order, such that the dependencies are minimized. Does this have a measurably effect on speed? Requires associativity.

    \ns -> A.sum ns == (A.sumNestedAssociative ns :: Integer)
    

  10. sumNestedCommutative :: C a => [a] -> a

    numeric-prelude Algebra.Additive

    Make sure that the last entries in the list are equally often part of an addition. Maybe this can reduce rounding errors. The list that sum2 computes is a breadth-first-flattened binary tree. Requires associativity and commutativity.

    \ns -> A.sum ns == (A.sumNestedCommutative ns :: Integer)
    

Page 46 of many | Previous | Next