Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							061aad0431 
							
						 
					 
					
						
						
							
							remove some CPP that's obsolete since we require base 4.8+  
						
						
						
					 
					
						2018-06-04 17:33:21 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							d82370d10b 
							
						 
					 
					
						
						
							
							lib, app, web: remove differences between command line and journal file aliases  
						
						
						
					 
					
						2018-04-17 16:09:11 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							f6ec26e321 
							
						 
					 
					
						
						
							
							lib, app, web, ui: rename readJournalFile[s]WithOpts to readJournalFile, same for tryReader[s]WithOpts  
						
						
						
					 
					
						2018-04-17 15:25:02 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							37607beaea 
							
						 
					 
					
						
						
							
							lib, app, web: use readJournalFileWithOpts instead of readJournalFile whenever possible  
						
						
						
					 
					
						2018-04-17 14:33:32 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Astapov 
							
						 
					 
					
						
						
						
						
							
						
						
							ecf49b1e4b 
							
						 
					 
					
						
						
							
							lib: auto postings generated before amount inference and balance checks ( #729 )  
						
						
						
					 
					
						2018-04-17 14:33:32 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f8e781462d 
							
						 
					 
					
						
						
							
							ui, web: use/support new -V, --forecast, --auto  
						
						
						
					 
					
						2017-12-29 16:53:37 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e5f794d2cb 
							
						 
					 
					
						
						
							
							cli,ui,web: a @FILE argument reads flags & args from FILE, one per line  
						
						
						
					 
					
						2017-09-30 06:49:31 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							fead7c5138 
							
						 
					 
					
						
						
							
							cli, ui, web: make -NUM a shortcut for --depth NUM  
						
						
						
					 
					
						2017-09-22 16:14:30 -10:00 
						 
				 
			
				
					
						
							
							
								Jakub Zárybnický 
							
						 
					 
					
						
						
						
						
							
						
						
							13a6584440 
							
						 
					 
					
						
						
							
							ui, web: Enable --pivot and --anon in ui and web ( #474 )  
						
						
						
					 
					
						2017-09-04 20:45:31 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							7e896572a7 
							
						 
					 
					
						
						
							
							make --help and -h the same, drop --man and --info for now ( #579 )  
						
						
						
					 
					
						2017-07-07 02:08:34 +01:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b402fc7e7d 
							
						 
					 
					
						
						
							
							lib: optserror -> usageError, consolidate with other error functions ( #529 )  
						
						
						
					 
					
						2017-03-29 08:00:51 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							1bcc091a44 
							
						 
					 
					
						
						
							
							web: add --host, rename --server to --serve ( #429 )  
						
						... 
						
						
						
						This came up in the context of Docker, but it seems it wasn't possible
for hledger-web to serve remote clients directly (without a proxy)
because of 127.0.0.1 being hardcoded ? Now that can be
changed with --host=IPADDR. The default base url also
uses this address, rather than "localhost" being hardcoded.
Also, the --server flag sounded too close in meaning to --host so
I've renamed it to --serve. The old spelling is still accepted,
at least through the next major release I suppose. 
						
					 
					
						2016-11-21 07:38:58 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b7071dee84 
							
						 
					 
					
						
						
							
							lib: use Data.Default directly, not via cmdargs  
						
						
						
					 
					
						2016-07-29 10:15:48 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							739c8dc4cc 
							
						 
					 
					
						
						
							
							web: preserve initial query when journal changes ( #314 )  
						
						... 
						
						
						
						The initial query specified by command line arguments is now preserved
when the journal is reloaded. This does not appear in the web UI, it's
like an invisible extra filter. 
						
					 
					
						2016-04-28 21:48:30 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							df1040014e 
							
						 
					 
					
						
						
							
							web: exit if an instance is already running ( #226 )  
						
						... 
						
						
						
						Also
- pause for 0.1s before opening the browser, to ensure the app is ready
- don't open a browser if the app fails to start
- terminate the server thread more carefully on exit, may resolve some
  lingering background thread issues eg on windows 
						
					 
					
						2016-04-22 11:21:33 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							42c12fe631 
							
						 
					 
					
						
						
							
							cli, ui, web, api: --info, --man, info & man cmds  
						
						
						
					 
					
						2016-04-19 19:21:29 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f9362707b6 
							
						 
					 
					
						
						
							
							ui, web, api: fix -h, --help  
						
						
						
					 
					
						2016-04-18 16:43:51 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b4a72da355 
							
						 
					 
					
						
						
							
							web: fix stack ghci duplicate main error  
						
						
						
					 
					
						2016-04-18 15:26:54 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							6fb76d979f 
							
						 
					 
					
						
						
							
							web: fix typo in "-f -" warning  
						
						
						
					 
					
						2016-01-25 09:07:37 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							09430f09da 
							
						 
					 
					
						
						
							
							web: fix --file-url option ( #285 )  
						
						... 
						
						
						
						Finish the rename begun by 3fb5e25 
						
					 
					
						2015-09-28 10:06:36 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2c3f1b672e 
							
						 
					 
					
						
						
							
							web: disallow -f- which doesn't work ( fixes   #202 )  
						
						... 
						
						
						
						hledger-web -f- gives
[Error#yesod-core] <stdin>: hGetContents: illegal operation (handle is closed)
and I can't see why. Just disallow it. 
						
					 
					
						2015-09-27 08:17:12 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3fa3926ee9 
							
						 
					 
					
						
						
							
							web: clarify which libs we are calling to start up  
						
						
						
					 
					
						2015-09-27 08:16:30 -10:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							74512814ec 
							
						 
					 
					
						
						
							
							cli/ui/web: rename X.Options modules to X.XOptions  
						
						... 
						
						
						
						Make these modules' names more like the heavily-used types they
define (CliOpts, UIOpts, WebOpts). This is consistent with
RawOptions and ReportOptions, and helps with code navigation. 
						
					 
					
						2015-08-28 12:43:51 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f3dd5eb830 
							
						 
					 
					
						
						
							
							fix options breakage with GHC < 7.10  
						
						
						
					 
					
						2015-08-28 11:17:49 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							2af8d7598e 
							
						 
					 
					
						
						
							
							cli, web: fix options breakage  
						
						
						
					 
					
						2015-08-28 10:49:43 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0de0f6ab01 
							
						 
					 
					
						
						
							
							group related imports  
						
						
						
					 
					
						2015-06-04 09:45:43 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							bb8918a709 
							
						 
					 
					
						
						
							
							web: fix build breakage from  #165  ( fixes   #268 )  
						
						
						
					 
					
						2015-06-04 09:44:58 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							83209b862c 
							
						 
					 
					
						
						
							
							tools: fix overuse of -XCPP breaking make test etc.  
						
						
						
					 
					
						2015-04-07 19:28:57 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							ebba1b09f2 
							
						 
					 
					
						
						
							
							web: fix more ghc 7.10 import warnings ( #239 )  
						
						
						
					 
					
						2015-04-07 18:49:33 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							b0d71e3ccc 
							
						 
					 
					
						
						
							
							web: declare a bunch of language pragmas  
						
						... 
						
						
						
						Makes the code more declarative, and makes building without cabal easier. 
						
					 
					
						2015-04-07 18:35:41 -07:00 
						 
				 
			
				
					
						
							
							
								gwern 
							
						 
					 
					
						
						
						
						
							
						
						
							d1618aaca8 
							
						 
					 
					
						
						
							
							strip trailing whitespace from all Haskell files  
						
						
						
					 
					
						2014-10-14 18:48:24 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							f30deee197 
							
						 
					 
					
						
						
							
							web: fix compilation after recent lib changes  
						
						
						
					 
					
						2014-07-03 09:37:02 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							702f900ec0 
							
						 
					 
					
						
						
							
							web: fix warnings  
						
						
						
					 
					
						2014-05-23 09:02:20 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan Desfosses 
							
						 
					 
					
						
						
						
						
							
						
						
							b60da51386 
							
						 
					 
					
						
						
							
							made the following changes to resolve deprecated warnings:  
						
						... 
						
						
						
						replaced hamletToRepHtml with giveUrlRenderer
  updated type RepHtml to Html
  replaced settingsPort with setPort 
						
					 
					
						2014-05-21 07:30:54 -04:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							e6a1339370 
							
						 
					 
					
						
						
							
							cli: options help polish  
						
						
						
					 
					
						2014-05-01 07:22:44 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3fb5e25fd4 
							
						 
					 
					
						
						
							
							web: rename --static-root to --file-url  
						
						
						
					 
					
						2014-04-30 08:48:23 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a9c83f0ce1 
							
						 
					 
					
						
						
							
							web: add Peter Simons' patch fixing Data.Conduit.Network HostIPv4 error ( #171 )  
						
						... 
						
						
						
						(cherry picked from commit 993cae3a74eaa42b720fe51744e5459fd5a4eaa9)
Conflicts:
	hledger-web/Hledger/Web/Main.hs 
						
					 
					
						2014-04-17 12:35:42 -07:00 
						 
				 
			
				
					
						
							
							
								Xinruo Sun 
							
						 
					 
					
						
						
						
						
							
						
						
							0275485bf9 
							
						 
					 
					
						
						
							
							web: add a --static-root option to customize static files root  
						
						
						
					 
					
						2013-12-15 12:20:07 +08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							02fea186a3 
							
						 
					 
					
						
						
							
							web: fix debug option breakage in Main  
						
						
						
					 
					
						2013-12-08 19:48:51 -08:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							a66a715eeb 
							
						 
					 
					
						
						
							
							command line options API updates, possibly fixing hledger-web build  
						
						
						
					 
					
						2013-09-22 22:31:06 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							080eb866ec 
							
						 
					 
					
						
						
							
							web: clean up language extensions a bit, make autoweb works again  
						
						
						
					 
					
						2013-06-04 18:23:55 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c744451dfa 
							
						 
					 
					
						
						
							
							web: loosen "starting web browser" message for servers  
						
						
						
					 
					
						2013-06-01 11:40:00 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							8873ffbe77 
							
						 
					 
					
						
						
							
							web: fix auto-exit in local mode, clarify startup messages  
						
						
						
					 
					
						2013-05-01 12:02:47 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							c9b6dd8819 
							
						 
					 
					
						
						
							
							web: --server flag re-enables long-running, request-logging mode; output cleanups  
						
						
						
					 
					
						2013-05-01 07:23:59 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0a47715b17 
							
						 
					 
					
						
						
							
							web: also launch a browser at startup; auto-terminate after 2m or on enter  
						
						... 
						
						
						
						We're now using the wai-handler-launch middleware. This injects a
script in each page that pings the server repeatedly, and terminates
the server if it gets no pings (ie there are no browser tabs
displaying the app) for two minutes. The server can also be easily
terminated at the console by pressing enter, yesod devel style. 
						
					 
					
						2013-04-20 20:02:50 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0a77eba02e 
							
						 
					 
					
						
						
							
							web: try using wai-launch-handler.. not working yet  
						
						
						
					 
					
						2013-04-20 10:03:15 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							d5e575c862 
							
						 
					 
					
						
						
							
							web: remove io-storage  
						
						
						
					 
					
						2013-04-09 12:53:21 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							0df4a235af 
							
						 
					 
					
						
						
							
							web: set up journal for yesod devel, store it in App ( fixes   #101 )  
						
						... 
						
						
						
						The web app's journal state is now kept in the yesod App as an IORef,
instead of using io-storage.
yesod devel now works; it uses the journal file specified by
$LEDGER_FILE, or ~/.hledger.journal.
web: update journal state handling, fix yesod devel - WIP 
						
					 
					
						2013-04-09 12:41:22 -07:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							3d33673b25 
							
						 
					 
					
						
						
							
							web: obey command-line query options at startup again  
						
						
						
					 
					
						2012-11-15 17:53:10 +00:00 
						 
				 
			
				
					
						
							
							
								Simon Michael 
							
						 
					 
					
						
						
						
						
							
						
						
							cfbd8bb956 
							
						 
					 
					
						
						
							
							web: update for yesod 1.1.3  
						
						... 
						
						
						
						Build with latest yesod. Also reorganise to conform more closely with
yesod's standard scaffold layout to reduce upgrade effort. 
						
					 
					
						2012-11-15 17:48:48 +00:00