Resolving dependencies... Configuring abstract-deque-0.3... Configuring Decimal-0.5.1... Building abstract-deque-0.3... Building Decimal-0.5.1... Installed abstract-deque-0.3 Configuring abstract-par-0.3.3... Building abstract-par-0.3.3... Installed Decimal-0.5.1 Configuring base-compat-0.9.3... Building base-compat-0.9.3... Installed abstract-par-0.3.3 Configuring base-orphans-0.7... Building base-orphans-0.7... Installed base-compat-0.9.3 Configuring blaze-builder-0.4.1.0... Installed base-orphans-0.7 Configuring cereal-0.5.5.0... Building blaze-builder-0.4.1.0... Building cereal-0.5.5.0... Installed blaze-builder-0.4.1.0 Configuring clock-0.7.2... Building clock-0.7.2... Installed clock-0.7.2 Configuring cmdargs-0.10.20... Installed cereal-0.5.5.0 Configuring colour-2.3.4... Building cmdargs-0.10.20... Building colour-2.3.4... Installed colour-2.3.4 Configuring csv-0.1.2... Building csv-0.1.2... Installed csv-0.1.2 Configuring data-default-class-0.1.2.0... Building data-default-class-0.1.2.0... Installed data-default-class-0.1.2.0 Configuring dlist-0.8.0.4... Building dlist-0.8.0.4... Installed dlist-0.8.0.4 Configuring erf-2.0.0.0... Building erf-2.0.0.0... Installed erf-2.0.0.0 Configuring hashtables-1.2.3.0... Building hashtables-1.2.3.0... Installed cmdargs-0.10.20 Configuring haskell-lexer-1.0.1... Building haskell-lexer-1.0.1... Installed hashtables-1.2.3.0 Configuring mtl-compat-0.2.1.3... Building mtl-compat-0.2.1.3... Installed mtl-compat-0.2.1.3 Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring parser-combinators-1.0.0... Building parser-combinators-1.0.0... Installed parser-combinators-1.0.0 Configuring regex-tdfa-1.2.3... Building regex-tdfa-1.2.3... Installed regex-tdfa-1.2.3 Configuring safe-0.3.17... Building safe-0.3.17... Installed safe-0.3.17 Configuring th-abstraction-0.2.6.0... Building th-abstraction-0.2.6.0... Installed th-abstraction-0.2.6.0 Configuring time-locale-compat-0.1.1.4... Building time-locale-compat-0.1.1.4... Installed time-locale-compat-0.1.1.4 Configuring transformers-compat-0.6.2... Building transformers-compat-0.6.2... Installed transformers-compat-0.6.2 Configuring uglymemo-0.1.0.1... Building uglymemo-0.1.0.1... Installed uglymemo-0.1.0.1 Configuring utf8-string-1.0.1.1... Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring uuid-types-1.0.3... Building uuid-types-1.0.3... Installed uuid-types-1.0.3 Configuring vector-algorithms-0.7.0.1... Building vector-algorithms-0.7.0.1... Installed haskell-lexer-1.0.1 Configuring vector-binary-instances-0.2.4... Installed vector-algorithms-0.7.0.1 Configuring vector-th-unbox-0.2.1.6... Building vector-binary-instances-0.2.4... Building vector-th-unbox-0.2.1.6... Installed vector-binary-instances-0.2.4 Configuring blaze-markup-0.8.2.1... Installed vector-th-unbox-0.2.1.6 Configuring extra-1.6.8... Building blaze-markup-0.8.2.1... Building extra-1.6.8... Installed blaze-markup-0.8.2.1 Configuring monad-par-extras-0.3.3... Building monad-par-extras-0.3.3... Installed extra-1.6.8 Configuring ansi-terminal-0.8.0.4... Building ansi-terminal-0.8.0.4... Installed monad-par-extras-0.3.3 Configuring tabular-0.2.2.7... Building tabular-0.2.2.7... Installed ansi-terminal-0.8.0.4 Configuring data-default-instances-containers-0.0.1... Installed tabular-0.2.2.7 Configuring data-default-instances-dlist-0.0.1... Building data-default-instances-containers-0.0.1... Building data-default-instances-dlist-0.0.1... Installed data-default-instances-containers-0.0.1 Configuring old-time-1.1.0.3... Installed data-default-instances-dlist-0.0.1 Configuring data-default-instances-old-locale-0.0.1... Building data-default-instances-old-locale-0.0.1... Building old-time-1.1.0.3... Installed data-default-instances-old-locale-0.0.1 Configuring megaparsec-6.5.0... Building megaparsec-6.5.0... Installed old-time-1.1.0.3 Configuring tagged-0.8.5... Building tagged-0.8.5... Installed tagged-0.8.5 Configuring pretty-show-1.7... Building pretty-show-1.7... Installed megaparsec-6.5.0 Configuring math-functions-0.2.1.0... Building math-functions-0.2.1.0... Installed pretty-show-1.7 Configuring data-default-0.7.1.1... Building data-default-0.7.1.1... Installed data-default-0.7.1.1 Configuring aeson-1.2.4.0... Building aeson-1.2.4.0... Installed math-functions-0.2.1.0 Configuring hledger-lib-1.9.1... Building hledger-lib-1.9.1... Installed aeson-1.2.4.0 Configuring mwc-random-0.13.6.0... Building mwc-random-0.13.6.0... Installed mwc-random-0.13.6.0 Configuring monad-par-0.3.4.8... Building monad-par-0.3.4.8... Installed monad-par-0.3.4.8 Configuring statistics-0.14.0.2... Installed hledger-lib-1.9.1 Building statistics-0.14.0.2... Installed statistics-0.14.0.2 Configuring hledger-irr-0.1.1.14... Building hledger-irr-0.1.1.14... Failed to install hledger-irr-0.1.1.14 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/hledger-irr-0.1.1.14-IiXSiSZmBGP7gptxhTjB2I.log ): cabal: Entering directory '/tmp/cabal-tmp-29386/hledger-irr-0.1.1.14' Configuring hledger-irr-0.1.1.14... Preprocessing executable 'hledger-irr' for hledger-irr-0.1.1.14.. Building executable 'hledger-irr' for hledger-irr-0.1.1.14.. : warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: Paths_hledger_irr [1 of 2] Compiling Paths_hledger_irr ( dist/build/hledger-irr/autogen/Paths_hledger_irr.hs, dist/build/hledger-irr/hledger-irr-tmp/Paths_hledger_irr.o ) [2 of 2] Compiling Main ( Main.hs, dist/build/hledger-irr/hledger-irr-tmp/Main.o ) Main.hs:110:11: error: • Couldn't match expected type ‘Bool -> FilePath -> IO (Either String Journal)’ with actual type ‘IO (Either String Journal)’ • The function ‘readJournalFile’ is applied to four arguments, but its type ‘InputOpts -> PrefixedFilePath -> IO (Either String Journal)’ has only two In the first argument of ‘(>>=)’, namely ‘readJournalFile Nothing Nothing True (optInput opts)’ In a stmt of a 'do' block: jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | 110 | jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Main.hs:110:27: error: • Couldn't match expected type ‘InputOpts’ with actual type ‘Maybe a0’ • In the first argument of ‘readJournalFile’, namely ‘Nothing’ In the first argument of ‘(>>=)’, namely ‘readJournalFile Nothing Nothing True (optInput opts)’ In a stmt of a 'do' block: jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | 110 | jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | ^^^^^^^ Main.hs:110:35: error: • Couldn't match type ‘Maybe a1’ with ‘[Char]’ Expected type: PrefixedFilePath Actual type: Maybe a1 • In the second argument of ‘readJournalFile’, namely ‘Nothing’ In the first argument of ‘(>>=)’, namely ‘readJournalFile Nothing Nothing True (optInput opts)’ In a stmt of a 'do' block: jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | 110 | jnl' <- readJournalFile Nothing Nothing True (optInput opts) >>= either fail return | ^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-29386/hledger-irr-0.1.1.14' cabal: Error: some packages failed to install: hledger-irr-0.1.1.14-IiXSiSZmBGP7gptxhTjB2I failed during the building phase. The exception was: ExitFailure 1