Hoogle Search

Within LTS Haskell 24.55 (ghc-9.10.3)

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

  1. sortableList :: (MonadHold t m, MonadFix m, Adjustable t m, Ord k) => (k -> v -> m a) -> Map k v -> Event t (v -> v -> Ordering) -> m (Map k a)

    reflex Reflex.Widget.Basic

    Build sortable content in such a way that re-sorting it can cause minimal disruption to an existing context. Naively re-sorting a list of images would destroy every image and add them back in the new order. This framework is able to avoid that by preserving the identity of each image and simply moving it to the new location. Example:

    let sortByFst = buttonA $> comparing fst
    sortBySnd = buttonB $> comparing snd
    sortEvent = leftmost [sortByFst, sortBySnd]
    sortableList
    (\k v -> text $ "\n" ++ show k ++ " " ++ v)  -- show each element on a new line
    (Map.fromList $ zip [0..] [(3, "a"), (2, "b"), (1, "c")])
    sortEvent
    

  2. sortAccountNamesByDeclaration :: Journal -> Bool -> [AccountName] -> [AccountName]

    hledger-lib Hledger.Data.Account

    Sort account names by the order in which they were declared in the journal, at each level of the account tree (ie within each group of siblings). Undeclared accounts are sorted last and alphabetically. This is hledger's default sort for reports organised by account. The account list is converted to a tree temporarily, adding any missing parents; these can be kept (suitable for a tree-mode report) or removed (suitable for a flat-mode report).

  3. sortAccountTreeByAmount :: NormalSign -> Account -> Account

    hledger-lib Hledger.Data.Account

    Sort each group of siblings in an account tree by inclusive amount, so that the accounts with largest normal balances are listed first. The provided normal balance sign determines whether normal balances are negative or positive, affecting the sort order. Ie, if balances are normally negative, then the most negative balances sort first, and vice versa.

  4. sortRows :: ReportOpts -> Journal -> [MultiBalanceReportRow] -> [MultiBalanceReportRow]

    hledger-lib Hledger.Reports.MultiBalanceReport

    Sort the rows by amount or by account declaration order.

  5. sortRowsLike :: [AccountName] -> [PeriodicReportRow DisplayName b] -> [PeriodicReportRow DisplayName b]

    hledger-lib Hledger.Reports.MultiBalanceReport

    A sorting helper: sort a list of things (eg report rows) keyed by account name to match the provided ordering of those same account names.

  6. sortKeysDescription :: [Char]

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  7. sort_amount :: HasReportOptsNoUpdate c => Lens' c Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  8. sort_amount_ :: ReportOpts -> Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  9. sortspec :: HasReportOptsNoUpdate c => Lens' c SortSpec

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  10. sortspec_ :: ReportOpts -> SortSpec

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

Page 26 of many | Previous | Next