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.
-
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
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).
sortAccountTreeByAmount :: NormalSign -> Account -> Accounthledger-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.
sortRows :: ReportOpts -> Journal -> [MultiBalanceReportRow] -> [MultiBalanceReportRow]hledger-lib Hledger.Reports.MultiBalanceReport Sort the rows by amount or by account declaration order.
-
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.
-
hledger-lib Hledger.Reports.ReportOptions No documentation available.
sort_amount :: HasReportOptsNoUpdate c => Lens' c Boolhledger-lib Hledger.Reports.ReportOptions No documentation available.
sort_amount_ :: ReportOpts -> Boolhledger-lib Hledger.Reports.ReportOptions No documentation available.
sortspec :: HasReportOptsNoUpdate c => Lens' c SortSpechledger-lib Hledger.Reports.ReportOptions No documentation available.
sortspec_ :: ReportOpts -> SortSpechledger-lib Hledger.Reports.ReportOptions No documentation available.