retire broken make ghci rules, prefer stack ghci
This commit is contained in:
		
							parent
							
								
									ecbafba594
								
							
						
					
					
						commit
						57d7d931ae
					
				
							
								
								
									
										40
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								Makefile
									
									
									
									
									
								
							| @ -788,25 +788,27 @@ quickheap-%: hledgerprof samplejournals \ | |||||||
| # 	$(call def-help,repl-web, start a cabal REPL and load the hledger-web package)
 | # 	$(call def-help,repl-web, start a cabal REPL and load the hledger-web package)
 | ||||||
| # 	(cd hledger-web; cabal repl exe:hledger-web)
 | # 	(cd hledger-web; cabal repl exe:hledger-web)
 | ||||||
| 
 | 
 | ||||||
| ghci: \ | # multi-package GHCI prompts
 | ||||||
| 	 	$(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages) | # XXX disabled since broken by file-embed
 | ||||||
| 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs | # ghci: \
 | ||||||
| 
 | # 	 	$(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages)
 | ||||||
| ghci-dev: \ | # 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs
 | ||||||
| 	 	$(call def-help,ghci, start a GHCI REPL and load the dev.hs script plus hledger-lib and hledger) | #
 | ||||||
| 	stack exec $(GHCI) -- $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs | # ghci-dev: \
 | ||||||
| 
 | # 	 	$(call def-help,ghci, start a GHCI REPL and load the dev.hs script plus hledger-lib and hledger)
 | ||||||
| ghci-ui: \ | # 	stack exec $(GHCI) -- $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs
 | ||||||
| 		$(call def-help,ghci-ui, start a GHCI REPL and load the hledger-lib, hledger and hledger-ui packages) | #
 | ||||||
| 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-ui/Hledger/UI/Main.hs | # ghci-ui: \
 | ||||||
| 
 | # 		$(call def-help,ghci-ui, start a GHCI REPL and load the hledger-lib, hledger and hledger-ui packages)
 | ||||||
| ghci-web: \ | # 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-ui/Hledger/UI/Main.hs
 | ||||||
| 		$(call def-help,ghci-web, start a GHCI REPL and load the hledger-lib, hledger and hledger-web packages) | #
 | ||||||
| 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-web/app/main.hs | # ghci-web: \
 | ||||||
| 
 | # 		$(call def-help,ghci-web, start a GHCI REPL and load the hledger-lib, hledger and hledger-web packages)
 | ||||||
| ghci-api: \ | # 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-web/app/main.hs
 | ||||||
| 		$(call def-help,ghci-api, start a GHCI REPL and load the hledger-lib, hledger and hledger-api packages) | #
 | ||||||
| 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-api/hledger-api.hs | # ghci-api: \
 | ||||||
|  | # 		$(call def-help,ghci-api, start a GHCI REPL and load the hledger-lib, hledger and hledger-api packages)
 | ||||||
|  | # 	stack exec $(GHCI) -- $(BUILDFLAGS) hledger-api/hledger-api.hs
 | ||||||
| 
 | 
 | ||||||
| samplejournals: \ | samplejournals: \ | ||||||
| 	data/sample.journal \
 | 	data/sample.journal \
 | ||||||
|  | |||||||
| @ -563,21 +563,28 @@ $ stack bench | |||||||
| 
 | 
 | ||||||
| Get a GHCI prompt for hledger-lib: | Get a GHCI prompt for hledger-lib: | ||||||
| ```shell | ```shell | ||||||
| $ stack ghci hledger-lib | $ cd hledger-lib; stack ghci hledger-lib | ||||||
| ``` | ``` | ||||||
|  | Changing into the package directory isn't actually needed, but it | ||||||
|  | enables a custom .ghci script which sets a more useful short prompt. | ||||||
| 
 | 
 | ||||||
| Get a GHCI prompt for hledger: | Get a GHCI prompt for hledger: | ||||||
| ```shell | ```shell | ||||||
| $ stack ghci hledger | $ cd hledger; stack ghci hledger | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | Get a GHCI prompt for hledger-ui: | ||||||
|  | ```shell | ||||||
|  | $ cd hledger-ui; stack ghci hledger-ui | ||||||
|  | ``` | ||||||
| Get a GHCI prompt for hledger-web: | Get a GHCI prompt for hledger-web: | ||||||
| ```shell | ```shell | ||||||
| $ stack ghci hledger-web | $ cd hledger-web; stack ghci hledger-web | ||||||
| ``` | ``` | ||||||
| hledger-web also needs to find some things in its current directory (like the static/ directory). | hledger-web also needs to find some things in its current directory (like the static/ directory). | ||||||
| This normally just works, if not please [send details](https://github.com/simonmichael/hledger/issues/274). | This normally just works, if not please [send details](https://github.com/simonmichael/hledger/issues/274). | ||||||
| 
 | 
 | ||||||
|  | <!-- | ||||||
| Get a GHCI prompt for hledger and hledger-lib: | Get a GHCI prompt for hledger and hledger-lib: | ||||||
| ```shell | ```shell | ||||||
| $ make ghci | $ make ghci | ||||||
| @ -588,7 +595,6 @@ Get a GHCI prompt for hledger-web, hledger and hledger-lib: | |||||||
| $ make ghci-web | $ make ghci-web | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| <!-- |  | ||||||
| For the dev.hs developer script: | For the dev.hs developer script: | ||||||
| ```shell | ```shell | ||||||
| $ make ghci-dev | $ make ghci-dev | ||||||
| @ -1010,7 +1016,7 @@ Handler module and function names end with R, like the Yesod-generated route typ | |||||||
| Dynamically generated page content is mostly inline hamlet. | Dynamically generated page content is mostly inline hamlet. | ||||||
| Lucius/Julius files and widgets generally are not used, except for the default layout. | Lucius/Julius files and widgets generally are not used, except for the default layout. | ||||||
| 
 | 
 | ||||||
| The quickest way to test changes is `make ghciweb`, `:main --serve`, control-C, `:r`, repeat. | The quickest way to test changes is `cd hledger-web; stack ghci hledger-web`, `:main --serve`, control-C, `:r`, repeat. | ||||||
| No linking is required, and changes to static files like hledger.js are visible after reloading a page. | No linking is required, and changes to static files like hledger.js are visible after reloading a page. | ||||||
| 
 | 
 | ||||||
| Another way is `yesod devel`, which rebuilds automatically when files | Another way is `yesod devel`, which rebuilds automatically when files | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user