Some configuration for running hledger-web in ghci, and misc. utilities
including hlint/hoogle/hayoo and a not-yet-working yesod devel-like
reloader from a recent reddit thread. (If enabling these, also uncomment
the required libs in hledger-web.cabal). Although it's not yet
automated, we can now test hledger-web changes without relinking:
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
Press ctrl-c to quit
C-c C-cInterrupted.
>>> :r
Ok, modules loaded: Settings, Main, Hledger.Web.Main, Application, Hledger.Web.Options, Settings.Development, Import, Handler.RootR, Handler.JournalR, Handler.RegisterR, Handler.SidebarR, Handler.Common, Handler.Utils, Foundation, Settings.StaticFiles, Handler.Post.
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
- the web UI has been streamlined; edit form, raw & entries views dropped
- we now remember whether sidebar is open or closed
- better help dialog
- keyboard shortcuts are now available
- better add form
- more bootstrap styling
- static file cleanups
- report filtering fixes
- upgrade jquery to 2.1.1, bootstrap to 3.1.1, drop select2, add typeahead, cookie, hotkeys
- clarify debug helpers a little
- refactoring
Building hledger-web is taking more than half a gigabyte here.
Building with -O2 is generally considered to eat more memory.
and be less robust than -O, and seems unnecessary for hledger-web.
Use the javascript library select2 to autocomplete descriptions and
account names when adding a transaction. The autocomplete searches by
substring, prefix and infix. New values will also be accepted.
This replaces dhtmlxcombo library so it is removed. Also updated jquery
to the latest 1.10.1.
cabal-install's default backtracking of 200 is insufficient to
install (eg) current hledger-web, yesod-platform 1.2 and HP. (It works
at 400). Requiring the latest yesod-platform seems to resolve the problem.