This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addOrAssignAmountAndCheckAssertionB :: Posting -> Balancing s Posting | |
addOrAssignAmountAndCheckAssertionB p@Posting{paccount=acc, pamount=amt, pbalanceassertion=mba} -- line 730 | |
| hasAmount p = do | |
newbal <- addAmountB acc amt | |
whenM (R.reader bsAssrt) $ checkBalanceAssertionB p newbal | |
return p | |
| Nothing <- mba = return p | |
| Just BalanceAssertion{baamount,batotal} <- mba = do | |
(diff,newbal) <- case batotal of | |
True -> do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; transaction modifier (auto postings) rule | |
; Txns after 2019/1/1 with a (unbalanced) revenues posting, | |
; and which don't have the modified: tag, like this: | |
; | |
;2019/2/1 (cwYYYYMM) client cw | payment | |
; (JS:revenues:cw) $-1000 | |
; | |
; will have some standard postings added. This can be used for forecasting. | |
; | |
= date:2019- JS:revenues:cw not:tag:modified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hledger | |
------------------------------------------------------------------------------- | |
hledger 1.12.99 | |
Usage: hledger COMMAND [OPTIONS] [-- ADDONCMDOPTIONS] | |
Commands (+ addons found in $PATH): | |
Data entry (these commands modify the journal file): | |
add add transactions using guided prompts | |
+iadd add transactions using curses ui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case () of | |
_ | changes==movedown -> printf "%d,%dv " x y | |
_ | changes==moveleft -> printf "<%d,%d " x y | |
_ | changes==moveright -> printf "%d,%d> " x y | |
_ -> printf "%d,%d. " x y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parsePoints s = s | |
& lines | |
& map (SC.scanf [SC.fmt|position=<%d, %d> velocity=<%d, %d>|]) | |
& catMaybes | |
& map (SC.printf [SC.fmt|((%d,%d), (%d,%d))|]) | |
& map read :: [Point] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack exec | |
--verbosity info | |
--package webdriver | |
-- ghc | |
-} | |
--package data-default | |
-- stack exec ghci wellsfargo | |
-- stack exec ghc wellsfargohs | |
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile.linux | |
# The mac makefile is more up to date. | |
TIME=/usr/bin/time -f%E | |
DARCS=darcs | |
test: | |
for N in \ | |
100 200 300 400 500 600 700 800 900 \ | |
1000 2000 3000 4000 5000 6000 7000 8000 9000 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10:08 AM Restarting Haskell project | |
10:09 AM [global-stack-repl] Stack REPL will be started with command: /Users/simon/.local/bin/stack repl --with-ghc intero --no-load --no-build --ghci-options -ghci-script=/Users/simon/Library/Caches/com.github.rikvdkleij.intellij-haskell/repl.ghci --silent --ghc-options -v1 --no-package-hiding --test --bench | |
10:09 AM [global-stack-repl] Stack REPL is started | |
10:09 AM [global-stack-repl] Command :q took + 7 ms | |
10:09 AM [global-stack-repl] stdout: Leaving GHCi. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9:23 AM Executing `/Users/simon/.local/bin/stack build intero --fast` failed: /Users/simon/.local/bin/stack build intero --fast: | |
WARNING: Ignoring out of range dependency (allow-newer enabled): ghc-8.6.1. intero requires: >=7.8 && <=8.4.3 | |
intero-0.1.32: download | |
intero-0.1.32: configure | |
intero-0.1.32: build | |
-- While building package intero-0.1.32 using: | |
/Users/simon/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.1 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file" | |
Process exited with code: ExitFailure 1 | |
Logs have been written to: /Users/simon/src/PLAINTEXTACCOUNTING/hledger2/.stack-work/logs/intero-0.1.32.log | |
Configuring intero-0.1.32... |