Build #6 for hledger-irr-0.1

[all reports]

Package hledger-irr-0.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-23 00:14:46.857645 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies Cabal-1.24.0.0, base-4.9.0.0, hledger-lib-1.0.1, statistics-0.13.3.0, time-1.6.0.1
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring Decimal-0.4.2...
Configuring abstract-par-0.3.3...
Building abstract-par-0.3.3...
Building Decimal-0.4.2...
Installed abstract-par-0.3.3
Configuring call-stack-0.1.0...
Building call-stack-0.1.0...
Configuring cereal-0.5.4.0...
Installed Decimal-0.4.2
Building cereal-0.5.4.0...
Configuring base-compat-0.9.1...
Installed call-stack-0.1.0
Building base-compat-0.9.1...
Configuring data-default-class-0.1.2.0...
Installed base-compat-0.9.1
Building data-default-class-0.1.2.0...
Configuring cmdargs-0.10.14...
Installed cereal-0.5.4.0
Building cmdargs-0.10.14...
Configuring dlist-0.8.0.2...
Installed data-default-class-0.1.2.0
Building dlist-0.8.0.2...
Configuring haskell-lexer-1.0.1...
Installed dlist-0.8.0.2
Building haskell-lexer-1.0.1...
Configuring erf-2.0.0.0...
Installed cmdargs-0.10.14
Building erf-2.0.0.0...
Configuring mtl-2.2.1...
Installed erf-2.0.0.0
Building mtl-2.2.1...
Configuring old-locale-1.0.0.7...
Installed haskell-lexer-1.0.1
Building old-locale-1.0.0.7...
Configuring primitive-0.6.1.0...
Installed old-locale-1.0.0.7
Building primitive-0.6.1.0...
Configuring parallel-3.2.1.0...
Installed mtl-2.2.1
Building parallel-3.2.1.0...
Configuring random-1.1...
Installed parallel-3.2.1.0
Building random-1.1...
Configuring safe-0.3.10...
Installed primitive-0.6.1.0
Building safe-0.3.10...
Configuring semigroups-0.18.2...
Installed safe-0.3.10
Building semigroups-0.18.2...
Configuring split-0.2.3.1...
Installed random-1.1
Building split-0.2.3.1...
Configuring stm-2.4.4.1...
Installed semigroups-0.18.2
Building stm-2.4.4.1...
Configuring time-locale-compat-0.1.1.3...
Installed split-0.2.3.1
Building time-locale-compat-0.1.1.3...
Configuring transformers-compat-0.5.1.4...
Installed time-locale-compat-0.1.1.3
Building transformers-compat-0.5.1.4...
Configuring text-1.2.2.1...
Installed stm-2.4.4.1
Building text-1.2.2.1...
Configuring uglymemo-0.1.0.1...
Installed transformers-compat-0.5.1.4
Building uglymemo-0.1.0.1...
Configuring utf8-string-1.0.1.1...
Installed uglymemo-0.1.0.1
Building utf8-string-1.0.1.1...
Installed utf8-string-1.0.1.1
Configuring data-default-instances-containers-0.0.1...
Building data-default-instances-containers-0.0.1...
Configuring HUnit-1.5.0.0...
Installed data-default-instances-containers-0.0.1
Building HUnit-1.5.0.0...
Configuring pretty-show-1.6.12...
Installed HUnit-1.5.0.0
Building pretty-show-1.6.12...
Configuring data-default-instances-dlist-0.0.1...
Installed text-1.2.2.1
Building data-default-instances-dlist-0.0.1...
Configuring data-default-instances-old-locale-0.0.1...
Installed data-default-instances-dlist-0.0.1
Building data-default-instances-old-locale-0.0.1...
Configuring old-time-1.1.0.3...
Installed pretty-show-1.6.12
Configuring mtl-compat-0.2.1.3...
Installed data-default-instances-old-locale-0.0.1
Building mtl-compat-0.2.1.3...
Building old-time-1.1.0.3...
Configuring regex-base-0.93.2...
Installed mtl-compat-0.2.1.3
Building regex-base-0.93.2...
Configuring vector-0.11.0.0...
Installed regex-base-0.93.2
Configuring abstract-deque-0.3...
Installed old-time-1.1.0.3
Building vector-0.11.0.0...
Building abstract-deque-0.3...
Configuring tf-random-0.5...
Installed abstract-deque-0.3
Building tf-random-0.5...
Configuring monad-par-extras-0.3.3...
Installed tf-random-0.5
Building monad-par-extras-0.3.3...
Configuring exceptions-0.8.3...
Installed monad-par-extras-0.3.3
Building exceptions-0.8.3...
Configuring tagged-0.8.5...
Installed exceptions-0.8.3
Building tagged-0.8.5...
Installed tagged-0.8.5
Configuring hashable-1.2.4.0...
Building hashable-1.2.4.0...
Configuring parsec-3.1.11...
Installed hashable-1.2.4.0
Building parsec-3.1.11...
Configuring blaze-builder-0.4.0.2...
Installed vector-0.11.0.0
Building blaze-builder-0.4.0.2...
Configuring data-default-0.7.1.1...
Installed blaze-builder-0.4.0.2
Configuring QuickCheck-2.9.2...
Installed parsec-3.1.11
Building data-default-0.7.1.1...
Building QuickCheck-2.9.2...
Installed data-default-0.7.1.1
Configuring unordered-containers-0.2.7.1...
Building unordered-containers-0.2.7.1...
Configuring mwc-random-0.13.5.0...
Installed unordered-containers-0.2.7.1
Building mwc-random-0.13.5.0...
Configuring scientific-0.3.4.9...
Installed mwc-random-0.13.5.0
Configuring vector-binary-instances-0.2.3.3...
Installed QuickCheck-2.9.2
Building scientific-0.3.4.9...
Building vector-binary-instances-0.2.3.3...
Configuring vector-algorithms-0.7.0.1...
Installed vector-binary-instances-0.2.3.3
Building vector-algorithms-0.7.0.1...
Configuring blaze-markup-0.7.1.1...
Installed scientific-0.3.4.9
Building blaze-markup-0.7.1.1...
Configuring csv-0.1.2...
Installed blaze-markup-0.7.1.1
Building csv-0.1.2...
Configuring vector-th-unbox-0.2.1.6...
Installed csv-0.1.2
Building vector-th-unbox-0.2.1.6...
Configuring regex-tdfa-1.2.2...
Installed vector-algorithms-0.7.0.1
Building regex-tdfa-1.2.2...
Installed vector-th-unbox-0.2.1.6
Configuring monad-par-0.3.4.8...
Building monad-par-0.3.4.8...
Configuring attoparsec-0.13.1.0...
Installed monad-par-0.3.4.8
Building attoparsec-0.13.1.0...
Configuring megaparsec-5.1.2...
Installed regex-tdfa-1.2.2
Building megaparsec-5.1.2...
Configuring math-functions-0.2.1.0...
Installed attoparsec-0.13.1.0
Building math-functions-0.2.1.0...
Installed megaparsec-5.1.2
Configuring aeson-1.0.2.1...
Building aeson-1.0.2.1...
Configuring hledger-lib-1.0.1...
Installed math-functions-0.2.1.0
Building hledger-lib-1.0.1...
Installed aeson-1.0.2.1
Configuring statistics-0.13.3.0...
Building statistics-0.13.3.0...
Installed hledger-lib-1.0.1
Installed statistics-0.13.3.0
Downloading hledger-irr-0.1...
Configuring hledger-irr-0.1...
Building hledger-irr-0.1...
Failed to install hledger-irr-0.1
Build log ( /home/builder/.cabal/logs/hledger-irr-0.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-28746/hledger-irr-0.1'
Configuring hledger-irr-0.1...
Building hledger-irr-0.1...
Preprocessing executable 'hledger-irr' for hledger-irr-0.1...
[1 of 2] Compiling Paths_hledger_irr ( dist/build/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:108:11: error:
    • Couldn't match expected type ‘IO (Either String Journal)’
                  with actual type ‘FilePath -> IO (Either String Journal)’
    • Probable cause: ‘readJournalFile’ is applied to too few arguments
      In the first argument of ‘(>>=)’, namely
        ‘readJournalFile Nothing Nothing (optInput opts)’
      In a stmt of a 'do' block:
        jnl' <- readJournalFile Nothing Nothing (optInput opts)
                >>= either fail return
      In the expression:
        do { (opts, args) <- getArgs >>= parseOpts;
             when
               (optShowVersion opts) (putStrLn (display version) >> exitSuccess);
             when (optShowHelp opts) (putStr usageMessage >> exitSuccess);
             when
               (null (optInvAcc opts))
               (commandLineError
                  "required --investment-account option is missing\n");
             .... }

Main.hs:108:44: error:
    • Couldn't match type ‘[Char]’ with ‘Bool’
      Expected type: Bool
        Actual type: FilePath
    • In the third argument of ‘readJournalFile’, namely
        ‘(optInput opts)’
      In the first argument of ‘(>>=)’, namely
        ‘readJournalFile Nothing Nothing (optInput opts)’
      In a stmt of a 'do' block:
        jnl' <- readJournalFile Nothing Nothing (optInput opts)
                >>= either fail return

Main.hs:116:32: error:
    Variable not in scope: transactionEffectiveDate :: Transaction -> a

Main.hs:117:31: error:
    Variable not in scope: transactionEffectiveDate :: Transaction -> a

Main.hs:132:28: error:
    • Data constructor not in scope: EDate :: DateSpan -> Query
    • Perhaps you meant ‘Date’ (imported from Hledger)

Main.hs:136:48: error:
    • Data constructor not in scope: EDate :: DateSpan -> Query
    • Perhaps you meant ‘Date’ (imported from Hledger)

Main.hs:141:27: error:
    • Data constructor not in scope: EDate :: DateSpan -> Query
    • Perhaps you meant ‘Date’ (imported from Hledger)

Main.hs:151:45: error:
    • Couldn't match type ‘Decimal-0.4.2:Data.Decimal.DecimalRaw
                             Integer’
                     with ‘Double’
      Expected type: Double -> Double
        Actual type: Double -> Quantity
    • In the third argument of ‘ridders’, namely
        ‘(aquantity . interestSum iend totalCF)’
      In the expression:
        ridders
          0.00001 (0.000001, 1000) (aquantity . interestSum iend totalCF)
      In a stmt of a 'do' block:
        case
            ridders
              0.00001 (0.000001, 1000) (aquantity . interestSum iend totalCF)
        of {
          Root rate -> putStrLn (printf "%0.2f%%" ((rate - 1) * 100))
          _ -> putStrLn "Error: Failed to find solution." }

Main.hs:172:56: error:
    • Couldn't match type ‘Double’
                     with ‘Decimal-0.4.2:Data.Decimal.DecimalRaw Integer’
      Expected type: Quantity
        Actual type: Double
    • In the second argument of ‘(*)’, namely ‘d’
      In the ‘aquantity’ field of a record
      In the expression: a {aquantity = q * d}

Main.hs:183:13: error:
    Variable not in scope: transactionEffectiveDate :: Transaction -> t

Main.hs:198:51: error:
    • Couldn't match type ‘[Char]’
                     with ‘text-1.2.2.1:Data.Text.Internal.Text’
      Expected type: text-1.2.2.1:Data.Text.Internal.Text
        Actual type: String
    • In the second argument of ‘fixSmartDateStrEither'’, namely ‘s’
      In the second argument of ‘($)’, namely
        ‘fixSmartDateStrEither' d s’
      In the expression:
        either
          (\ e
             -> error' $ printf "could not parse date %s %s" (show s) (show e))
          id
        $ fixSmartDateStrEither' d s
cabal: Leaving directory '/tmp/cabal-tmp-28746/hledger-irr-0.1'
cabal: Error: some packages failed to install:
hledger-irr-0.1 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.