hledger icon indicating copy to clipboard operation
hledger copied to clipboard

stack ghci hledger-web fails (getDirectoryContents: does not exist)

Open AaronM04 opened this issue 8 years ago • 2 comments

Hi, I'm trying to get hledger-web working and I'm probably doing something wrong here. Any help would be much appreciated. Thanks! :)

I should add that the reason why I am using docker is because my Haskell installation seems to be broken on this system.

Pulling the Stack docker image

$ stack docker pull
Pulling image from registry: 'fpco/stack-build:lts-6.0'
lts-6.0: Pulling from fpco/stack-build
6d28225f8d96: Pull complete 
166102ec41af: Pull complete 
d09bfba2bd6a: Pull complete 
c80dad39a6c0: Pull complete 
a3ed95caeb02: Pull complete 
789f846a74d9: Pull complete 
1e821146ffd2: Pull complete 
268919779e49: Pull complete 
6f066a826af1: Pull complete 
ba5ee4257792: Pull complete 
5d8019e2025b: Pull complete 
d45046444aab: Pull complete 
Digest: sha256:effcdb8c4b61cd854bdf712a2676fa45f8598ad64f670b24586fe8317ffc07c3
Status: Downloaded newer image for fpco/stack-build:lts-6.0

Building hledger

$ stack --docker build
Downloading Docker-compatible stack executable
Downloaded stack-1.1.2.                                    
Did not find .cabal file for yesod-core-1.4.20.2 with Git SHA of 5350ec333aa9ed6ae24e46142e33d2f851ace553
Right Nothing
Did not find .cabal file for wizards-1.0.2 with Git SHA of 525156becfe006b51f4e46b5e60c1bfbe3237336
Right Nothing
Did not find .cabal file for websockets-0.9.6.1 with Git SHA of 2f90616ee89447c142e535fecb5bdd407c14fa9a
Right Nothing
Did not find .cabal file for waitra-0.0.4.0 with Git SHA of 396179446c25a5f9e5ad931f09414f59e0bb4467
Right Nothing
Did not find .cabal file for wai-middleware-static-0.8.0 with Git SHA of 818e8bc0b3ebde0723a750aafb418e413437e78f
Right Nothing
Did not find .cabal file for uuid-1.3.12 with Git SHA of 79e931a867a5e3dd960b7e29426328fa73d69e00
Right Nothing
Did not find .cabal file for unix-compat-0.4.1.4 with Git SHA of e007b19ea18bb290e961f75812befc39dd1c3f49
Right Nothing
Did not find .cabal file for union-find-0.2 with Git SHA of d3241b27b99cf737fbad58f5cb9a4a3a27021ba0
Right Nothing
Did not find .cabal file for type-eq-0.5 with Git SHA of 44ef3dae4dacdc2729a2fde3ced964bd52ae05c7
Right Nothing
Did not find .cabal file for twitter-types-0.7.2.1 with Git SHA of 3be5081ac2a883993b7483ca9e44242102a36838
Right Nothing
Did not find .cabal file for time-parsers-0.1.0.0 with Git SHA of 659e82704ab87bb37870cee9c20ea099805ea2e9
Right Nothing
Did not find .cabal file for stack-1.1.2 with Git SHA of a7475d0d6a3251e2ab55273796cb33eb4df963de
Right Nothing
Did not find .cabal file for snowflake-0.1.1.1 with Git SHA of 43af0143a68cad54ed0ef6ca8f9d432a66f76b8e
Right Nothing
Did not find .cabal file for shelly-1.6.6 with Git SHA of 1252b8ee6d0f2b765d5cdcae8e6fa0368f7bd5ce
Right Nothing
Did not find .cabal file for servant-swagger-1.0.3 with Git SHA of 77ea61669cd46f327c6d6ce107c3c08ceefb8d01
Right Nothing
Did not find .cabal file for rethinkdb-client-driver-0.0.22 with Git SHA of 324ca1d3a35880dc3456811948e961fd0193392d
Right Nothing
Did not find .cabal file for rainbow-0.28.0.0 with Git SHA of 5a207b489c75612f00eb73e4df124864048033a9
Right Nothing
Did not find .cabal file for protocol-buffers-2.2.0 with Git SHA of cf9e1d0f87d4ced5f52e639c195e13f098a2760f
Right Nothing
Did not find .cabal file for postgresql-simple-0.5.1.3 with Git SHA of 099b32adc5a70377a951ba8b3a89d430040c7843
Right Nothing
Did not find .cabal file for pcre-utils-0.1.7 with Git SHA of 4658ab4cc430aab1bef45d50e59b6195b46bafaf
Right Nothing
Did not find .cabal file for parseargs-0.2.0.4 with Git SHA of c939e9125a328dafa62f86a6479ca2abaee47f7c
Right Nothing
Did not find .cabal file for opaleye-0.4.2.0 with Git SHA of 9b5608ac701b60a82f5cf985887d0d1450757864
Right Nothing
Did not find .cabal file for log-domain-0.10.3.1 with Git SHA of fd7d3752e18f03eb5d8ff329a5dace69ce384f9c
Right Nothing
Did not find .cabal file for lens-action-0.2.0.2 with Git SHA of 5fd05ff7e331a28982a7f0be7a6b04d37ecff00d
Right Nothing
Did not find .cabal file for language-ecmascript-0.17.1.0 with Git SHA of 3f4043479db04f39fe3734b61ebfee6384a02596
Right Nothing
Did not find .cabal file for kansas-comet-0.4 with Git SHA of be4690cfa4a780f71d05182fe5c69bb4ae635bf7
Right Nothing
Did not find .cabal file for jose-jwt-0.7 with Git SHA of 79b1b6ab8f598164d40e396433575bcdc255c8c3
Right Nothing
Did not find .cabal file for jmacro-0.6.13 with Git SHA of 93be88424db7194bea0f3b1d21049cb4f653c14d
Right Nothing
Did not find .cabal file for ixset-typed-0.3 with Git SHA of e2f9019388d77b3fb23b2fb6395564a6cd5bd7d9
Right Nothing
Did not find .cabal file for irc-dcc-1.2.0 with Git SHA of 11371b0550d358f4a13428cbbecc628153ab2a40
Right Nothing
Did not find .cabal file for insert-ordered-containers-0.1.0.1 with Git SHA of dac894fe7732fd1d9c14f18ff7f4d230ed58d04d
Right Nothing
Did not find .cabal file for hledger-lib-0.27 with Git SHA of 9ad40bc0d38fb9fa2a96e2f5211fef8e2b405222
Right Nothing
Did not find .cabal file for happstack-server-7.4.6.1 with Git SHA of db739ec8732a8a58fc9488cf4fb6ae10e82ead77
Right Nothing
Did not find .cabal file for fay-builder-0.2.0.5 with Git SHA of 45d24fd3663ae74696726d87a783469679ad6472
Right Nothing
Did not find .cabal file for fay-0.23.1.12 with Git SHA of 8dbcdfd039559115ca6928f4140cc880b1a4e6b3
Right Nothing
Did not find .cabal file for extensible-effects-1.11.0.3 with Git SHA of f5fe8d51c63306aba5daa2b809d97918d5bf3f0b
Right Nothing
Did not find .cabal file for ekg-json-0.1.0.1 with Git SHA of e50a97873d54e624b6953975721084d7c133ee86
Right Nothing
Did not find .cabal file for distributed-process-task-0.1.2.2 with Git SHA of 558ab10e1e9ebfb09c93a6fe513cd025bc54379d
Right Nothing
Did not find .cabal file for distributed-process-supervisor-0.1.3.2 with Git SHA of 02501e430c6420cfd827b834da8f63934a6e74c3
Right Nothing
Did not find .cabal file for distributed-process-extras-0.2.1.2 with Git SHA of 3992acd12344178f54bebd539b5969765bd8e301
Right Nothing
Did not find .cabal file for distributed-process-execution-0.1.2.2 with Git SHA of 499fccafb6d2cc098306e4545405365c4d1e5748
Right Nothing
Did not find .cabal file for distributed-process-client-server-0.1.3.2 with Git SHA of d6fa8ba835b9e0f96291362098e723915d999889
Right Nothing
Did not find .cabal file for crackNum-1.5 with Git SHA of d0e2e4390a56eadb285afab25f6159ce54d9e368
Right Nothing
Did not find .cabal file for compactmap-0.1.4 with Git SHA of fb9637ad073f5a328cd82361ee9296d45f3a9bbe
Right Nothing
Did not find .cabal file for clash-verilog-0.6.6 with Git SHA of b1804d05d356646044b575c50394ee3175b5ca6f
Right Nothing
Did not find .cabal file for clash-systemverilog-0.6.6 with Git SHA of bc14ca32374a2d27d42b24b393dc4538c67abbf3
Right Nothing
Did not find .cabal file for blank-canvas-0.6 with Git SHA of 1ab8537279ad2dd4cf25f76527633d47e5b16a94
Right Nothing
Did not find .cabal file for binary-conduit-1.2.3 with Git SHA of 64f2af039910421aacb833be0239ea966e61c6c6
Right Nothing
Did not find .cabal file for airship-0.5.0 with Git SHA of 0067c94b952a4ba70ff07a92f0f356ea7e6735c7
Right Nothing
Did not find .cabal file for aeson-0.11.2.0 with Git SHA of 79a532da3dcd74006d7503de66dff6f66d660c6a
Right Nothing
Did not find .cabal file for accelerate-0.15.1.0 with Git SHA of 9b3e506ef5e78e7be4d59e6e8b490c13f6ecc2d8
Right Nothing
Did not find .cabal file for MissingH-1.3.0.2 with Git SHA of 87eac736c00a2a60005b7185040b914582b7a71a
Right Nothing
Did not find .cabal file for HDBC-2.4.0.1 with Git SHA of df385b10294c417ae6f2667b9cbc7c020393722f
Right Nothing
No packages found in snapshot which provide a "hsc2hs" executable, which is a build-tool dependency of "skein"
Missing build-tools may be caused by dependencies of the build-tool being overridden by extra-deps.
This should be fixed soon - see this issue https://github.com/commercialhaskell/stack/issues/595

[1 of 1] Compiling Main             ( /tmp/stack1/Setup.hs, /tmp/stack1/Setup.o )
Linking /home/aaron/.stack/setup-exe-cache/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 ...
Decimal-0.4.2: configure
Decimal-0.4.2: build
HUnit-1.3.1.1: configure
[...]
yesod-form-1.4.7.1: copy/register
yesod-auth-1.4.13.2: configure
yesod-auth-1.4.13.2: build
yesod-auth-1.4.13.2: copy/register
yesod-1.4.3: configure
yesod-1.4.3: build
yesod-1.4.3: copy/register
hledger-web-0.28: configure
hledger-web-0.28: build
hledger-web-0.28: copy/register
swagger2-2.0.2: copy/register
servant-swagger-1.0.3: configure
servant-swagger-1.0.3: build
servant-swagger-1.0.3: copy/register
hledger-api-0.28: configure
hledger-api-0.28: build
hledger-api-0.28: copy/register
Completed 214 action(s).

Attempting to get a REPL for hledger-web - ERROR

$ stack --docker ghci
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded

* * * * * * * *
The main module to load is ambiguous. Candidates are: 
1. Package `hledger-api' component exe:hledger-api with main-is file: /home/aaron/dev/hs/hledger/hledger-api/hledger-api.hs
2. Package `hledger-ui' component exe:hledger-ui with main-is file: /home/aaron/dev/hs/hledger/hledger-ui/hledger-ui.hs
3. Package `hledger-web' component exe:hledger-web with main-is file: /home/aaron/dev/hs/hledger/hledger-web/app/main.hs
4. Package `hledger' component exe:hledger with main-is file: /home/aaron/dev/hs/hledger/hledger/app/hledger-cli.hs
You can specify which one to pick by: 
 * Specifying targets to stack ghci e.g. stack ghci hledger-api:exe:hledger-api
 * Specifying what the main is e.g. stack ghci --main-is hledger-api:exe:hledger-api
 * Choosing from the candidate above [1..4]
* * * * * * * *

Specify main module to use (press enter to load none): 3
Loading main module from cadidate 3, --main-is /home/aaron/dev/hs/hledger/hledger-web/app/main.hs

Configuring GHCi with the following packages: hledger-api, hledger-lib, hledger-ui, hledger-web, hledger
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
[ 1 of 88] Compiling Hledger.UI.Theme ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/Theme.hs, interpreted )
[ 2 of 88] Compiling Hledger.Utils.UTF8IOCompat ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/UTF8IOCompat.hs, interpreted )
[ 3 of 88] Compiling Hledger.Utils.Test ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Test.hs, interpreted )
[ 4 of 88] Compiling Hledger.Utils.Regex ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Regex.hs, interpreted )
[ 5 of 88] Compiling Hledger.Utils.Tree ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Tree.hs, interpreted )
[ 6 of 88] Compiling Hledger.Utils.Parse ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Parse.hs, interpreted )
[ 7 of 88] Compiling Hledger.Utils.String ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/String.hs, interpreted )
[ 8 of 88] Compiling Hledger.Utils.Text ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Text.hs, interpreted )
[ 9 of 88] Compiling Hledger.Utils.Debug ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils/Debug.hs, interpreted )
[10 of 88] Compiling Hledger.Utils    ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Utils.hs, interpreted )
[11 of 88] Compiling Hledger.Data.Types ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Types.hs, interpreted )
[12 of 88] Compiling Hledger.Data.RawOptions ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/RawOptions.hs, interpreted )
[13 of 88] Compiling Hledger.Data.StringFormat ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/StringFormat.hs, interpreted )
[14 of 88] Compiling Hledger.Data.Dates ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Dates.hs, interpreted )
[15 of 88] Compiling Hledger.Data.Commodity ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Commodity.hs, interpreted )
[16 of 88] Compiling Hledger.Data.Amount ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Amount.hs, interpreted )
[17 of 88] Compiling Hledger.Data.AccountName ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/AccountName.hs, interpreted )
[18 of 88] Compiling Hledger.Data.Posting ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Posting.hs, interpreted )
[19 of 88] Compiling Hledger.Data.Transaction ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Transaction.hs, interpreted )
[20 of 88] Compiling Hledger.Data.Timeclock ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Timeclock.hs, interpreted )
[21 of 88] Compiling Hledger.Query    ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Query.hs, interpreted )
[22 of 88] Compiling Hledger.Data.Journal ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Journal.hs, interpreted )
[23 of 88] Compiling Hledger.Data.Account ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Account.hs, interpreted )
[24 of 88] Compiling Hledger.Data.Ledger ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data/Ledger.hs, interpreted )
[25 of 88] Compiling Hledger.Data     ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Data.hs, interpreted )
[26 of 88] Compiling Hledger.Read.Common ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read/Common.hs, interpreted )
[27 of 88] Compiling Hledger.Read.CsvReader ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read/CsvReader.hs, interpreted )
[28 of 88] Compiling Hledger.Read.TimedotReader ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read/TimedotReader.hs, interpreted )
[29 of 88] Compiling Hledger.Read.TimeclockReader ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read/TimeclockReader.hs, interpreted )
[30 of 88] Compiling Hledger.Read.JournalReader ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read/JournalReader.hs, interpreted )
[31 of 88] Compiling Hledger.Read     ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Read.hs, interpreted )
[32 of 88] Compiling Hledger.Reports.ReportOptions ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/ReportOptions.hs, interpreted )
[33 of 88] Compiling Hledger.Reports.BalanceReport ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/BalanceReport.hs, interpreted )
[34 of 88] Compiling Hledger.Reports.EntriesReport ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/EntriesReport.hs, interpreted )
[35 of 88] Compiling Hledger.Reports.MultiBalanceReports ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/MultiBalanceReports.hs, interpreted )
[36 of 88] Compiling Hledger.Reports.PostingsReport ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/PostingsReport.hs, interpreted )
[37 of 88] Compiling Hledger.Reports.TransactionsReports ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/TransactionsReports.hs, interpreted )
[38 of 88] Compiling Hledger.Reports.BalanceHistoryReport ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports/BalanceHistoryReport.hs, interpreted )
[39 of 88] Compiling Hledger.Reports  ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger/Reports.hs, interpreted )
[40 of 88] Compiling Hledger          ( /home/aaron/dev/hs/hledger/hledger-lib/Hledger.hs, interpreted )
[41 of 88] Compiling Hledger.UI.Editor ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/Editor.hs, interpreted )
[42 of 88] Compiling Text.Tabular.AsciiWide ( /home/aaron/dev/hs/hledger/hledger/Text/Tabular/AsciiWide.hs, interpreted )
[43 of 88] Compiling Hledger.Cli.Version ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Version.hs, interpreted )
[44 of 88] Compiling Hledger.Cli.DocFiles ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/DocFiles.hs, interpreted )
[45 of 88] Compiling Hledger.Cli.CliOptions ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/CliOptions.hs, interpreted )
[46 of 88] Compiling Hledger.Cli.Utils ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Utils.hs, interpreted )
[47 of 88] Compiling Hledger.Cli.Accounts ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Accounts.hs, interpreted )
[48 of 88] Compiling Hledger.Cli.Balance ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Balance.hs, interpreted )
[49 of 88] Compiling Hledger.Cli.Balancesheet ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Balancesheet.hs, interpreted )
[50 of 88] Compiling Hledger.Cli.Cashflow ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Cashflow.hs, interpreted )
[51 of 88] Compiling Hledger.Cli.Help ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Help.hs, interpreted )
[52 of 88] Compiling Hledger.Cli.Histogram ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Histogram.hs, interpreted )
[53 of 88] Compiling Hledger.Cli.Incomestatement ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Incomestatement.hs, interpreted )
[54 of 88] Compiling Hledger.Cli.Info ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Info.hs, interpreted )
[55 of 88] Compiling Hledger.Cli.Man  ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Man.hs, interpreted )
[56 of 88] Compiling Hledger.Cli.Register ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Register.hs, interpreted )
[57 of 88] Compiling Hledger.Cli.Add  ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Add.hs, interpreted )
[58 of 88] Compiling Hledger.Cli.Print ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Print.hs, interpreted )
[59 of 88] Compiling Hledger.Cli.Stats ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Stats.hs, interpreted )
[60 of 88] Compiling Hledger.Cli      ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli.hs, interpreted )
[61 of 88] Compiling Hledger.Cli.Tests ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Tests.hs, interpreted )
[62 of 88] Compiling Hledger.Cli.Main ( /home/aaron/dev/hs/hledger/hledger/Hledger/Cli/Main.hs, interpreted )
[63 of 88] Compiling Hledger.UI.UIOptions ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/UIOptions.hs, interpreted )
[64 of 88] Compiling Hledger.UI.UITypes ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/UITypes.hs, interpreted )
[65 of 88] Compiling Hledger.UI.UIState ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/UIState.hs, interpreted )
[66 of 88] Compiling Hledger.UI.UIUtils ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/UIUtils.hs, interpreted )
[67 of 88] Compiling Hledger.UI.ErrorScreen ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/ErrorScreen.hs, interpreted )
[68 of 88] Compiling Hledger.UI.TransactionScreen ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/TransactionScreen.hs, interpreted )
[69 of 88] Compiling Hledger.UI.RegisterScreen ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/RegisterScreen.hs, interpreted )
[70 of 88] Compiling Hledger.UI.AccountsScreen ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/AccountsScreen.hs, interpreted )
[71 of 88] Compiling Hledger.UI.Main  ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI/Main.hs, interpreted )
[72 of 88] Compiling Hledger.UI       ( /home/aaron/dev/hs/hledger/hledger-ui/Hledger/UI.hs, interpreted )
[73 of 88] Compiling Settings.Development ( /home/aaron/dev/hs/hledger/hledger-web/Settings/Development.hs, interpreted )
[74 of 88] Compiling Settings         ( /home/aaron/dev/hs/hledger/hledger-web/Settings.hs, interpreted )
[75 of 88] Compiling Settings.StaticFiles ( /home/aaron/dev/hs/hledger/hledger-web/Settings/StaticFiles.hs, interpreted )

/home/aaron/dev/hs/hledger/hledger-web/Settings/StaticFiles.hs:31:22:
    Exception when trying to run compile-time code:
      static: getDirectoryContents: does not exist (No such file or directory)
    Code: embed staticDir
    In the splice: $(Static.embed staticDir)
Failed, modules loaded: Settings, Settings.Development, Hledger.Cli, Hledger.Cli.Main, Hledger.Cli.CliOptions, Hledger.Cli.DocFiles, Hledger.Cli.Tests, Hledger.Cli.Utils, Hledger.Cli.Version, Hledger.Cli.Add, Hledger.Cli.Accounts, Hledger.Cli.Balance, Hledger.Cli.Balancesheet, Hledger.Cli.Cashflow, Hledger.Cli.Help, Hledger.Cli.Histogram, Hledger.Cli.Incomestatement, Hledger.Cli.Info, Hledger.Cli.Man, Hledger.Cli.Print, Hledger.Cli.Register, Hledger.Cli.Stats, Text.Tabular.AsciiWide, Hledger, Hledger.Data, Hledger.Data.Account, Hledger.Data.AccountName, Hledger.Data.Amount, Hledger.Data.Commodity, Hledger.Data.Dates, Hledger.Data.Journal, Hledger.Data.Ledger, Hledger.Data.StringFormat, Hledger.Data.Posting, Hledger.Data.RawOptions, Hledger.Data.Timeclock, Hledger.Data.Transaction, Hledger.Data.Types, Hledger.Query, Hledger.Read, Hledger.Read.Common, Hledger.Read.CsvReader, Hledger.Read.JournalReader, Hledger.Read.TimedotReader, Hledger.Read.TimeclockReader, Hledger.Reports, Hledger.Reports.ReportOptions, Hledger.Reports.BalanceHistoryReport, Hledger.Reports.BalanceReport, Hledger.Reports.EntriesReport, Hledger.Reports.MultiBalanceReports, Hledger.Reports.PostingsReport, Hledger.Reports.TransactionsReports, Hledger.Utils, Hledger.Utils.Debug, Hledger.Utils.Parse, Hledger.Utils.Regex, Hledger.Utils.String, Hledger.Utils.Test, Hledger.Utils.Text, Hledger.Utils.Tree, Hledger.Utils.UTF8IOCompat, Hledger.UI.UIUtils, Hledger.UI, Hledger.UI.UITypes, Hledger.UI.UIState, Hledger.UI.UIOptions, Hledger.UI.Theme, Hledger.UI.TransactionScreen, Hledger.UI.Editor, Hledger.UI.ErrorScreen, Hledger.UI.RegisterScreen, Hledger.UI.Main, Hledger.UI.AccountsScreen.
[75 of 89] Compiling Settings.StaticFiles ( /home/aaron/dev/hs/hledger/hledger-web/Settings/StaticFiles.hs, interpreted )

/home/aaron/dev/hs/hledger/hledger-web/Settings/StaticFiles.hs:31:22:
    Exception when trying to run compile-time code:
      static: getDirectoryContents: does not exist (No such file or directory)
    Code: embed staticDir
    In the splice: $(Static.embed staticDir)
Failed, modules loaded: Settings, Settings.Development, Hledger.Cli, Hledger.Cli.Main, Hledger.Cli.CliOptions, Hledger.Cli.DocFiles, Hledger.Cli.Tests, Hledger.Cli.Utils, Hledger.Cli.Version, Hledger.Cli.Add, Hledger.Cli.Accounts, Hledger.Cli.Balance, Hledger.Cli.Balancesheet, Hledger.Cli.Cashflow, Hledger.Cli.Help, Hledger.Cli.Histogram, Hledger.Cli.Incomestatement, Hledger.Cli.Info, Hledger.Cli.Man, Hledger.Cli.Print, Hledger.Cli.Register, Hledger.Cli.Stats, Text.Tabular.AsciiWide, Hledger, Hledger.Data, Hledger.Data.Account, Hledger.Data.AccountName, Hledger.Data.Amount, Hledger.Data.Commodity, Hledger.Data.Dates, Hledger.Data.Journal, Hledger.Data.Ledger, Hledger.Data.StringFormat, Hledger.Data.Posting, Hledger.Data.RawOptions, Hledger.Data.Timeclock, Hledger.Data.Transaction, Hledger.Data.Types, Hledger.Query, Hledger.Read, Hledger.Read.Common, Hledger.Read.CsvReader, Hledger.Read.JournalReader, Hledger.Read.TimedotReader, Hledger.Read.TimeclockReader, Hledger.Reports, Hledger.Reports.ReportOptions, Hledger.Reports.BalanceHistoryReport, Hledger.Reports.BalanceReport, Hledger.Reports.EntriesReport, Hledger.Reports.MultiBalanceReports, Hledger.Reports.PostingsReport, Hledger.Reports.TransactionsReports, Hledger.Utils, Hledger.Utils.Debug, Hledger.Utils.Parse, Hledger.Utils.Regex, Hledger.Utils.String, Hledger.Utils.Test, Hledger.Utils.Text, Hledger.Utils.Tree, Hledger.Utils.UTF8IOCompat, Hledger.UI.UIUtils, Hledger.UI, Hledger.UI.UITypes, Hledger.UI.UIState, Hledger.UI.UIOptions, Hledger.UI.Theme, Hledger.UI.TransactionScreen, Hledger.UI.Editor, Hledger.UI.ErrorScreen, Hledger.UI.RegisterScreen, Hledger.UI.Main, Hledger.UI.AccountsScreen.

<no location info>:
    Could not find module ‘Application’
    It is a member of the hidden package ‘hledger-web-0.28@hledg_EoyeuMY4e8NG8NU2UoIlwR’.
*Text.Tabular.AsciiWide> 
Leaving GHCi.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

AaronM04 avatar Jun 24 '16 03:06 AaronM04

hledger-web's use of template haskell requires that four subdirectories are present in the current directory when you load it in GHCI: config, messages, templates and static. So you can either cd into the hledger-web package directory first, or you can symlink them in the top directory (for d in config messages templates static; do ln -s hledger-web/$d; done). Then stack ghci hledger-web or similar. http://hledger.org/developer-guide.html#use-the-repl-ghci mentions this, but seems in need of update.

simonmichael avatar Jun 24 '16 04:06 simonmichael

PS a patch, or better idea for how to make this more discoverable, welcome..

simonmichael avatar Jun 24 '16 04:06 simonmichael