johannesgerer / buchhaltung

Smart tools for the ledger universe
http://johannesgerer.com/buchhaltung
MIT License
97 stars 8 forks source link

cabal install errors #3

Closed mxgr7 closed 7 years ago

mxgr7 commented 8 years ago
src/Buchhaltung/Add.hs:23:1: error:
    Failed to load interface for ‘Hledger.Cli.Options’
    Perhaps you meant
      Hledger.Cli.CliOptions (from hledger-0.27.1)
      Hledger.Cli.Utils (from hledger-0.27.1)
      Hledger.Cli.Main (from hledger-0.27.1)

After fixing this (using the suggested Hledger.Cli.CliOptions):

src/Buchhaltung/Add.hs:190:41: error:
    • Couldn't match expected type ‘ClearedStatus’
                  with actual type ‘Bool’
    • In the ‘pstatus’ field of a record
      In the expression: x {pstatus = True}
      In the first argument of ‘changeNth’, namely
        ‘(\ x -> x {pstatus = True})’

src/Buchhaltung/Add.hs:210:19: error:
    • Couldn't match expected type ‘Bool’
                  with actual type ‘ClearedStatus’
    • In the first argument of ‘not’, namely ‘(pstatus p2)’
      In the first argument of ‘(&&)’, namely ‘not (pstatus p2)’
      In the second argument of ‘(&&)’, namely
        ‘not (pstatus p2) && not (or $ ignoredAccounts <*> [paccount p2])’

src/Buchhaltung/Add.hs:235:27: error:
    • Couldn't match expected type ‘ClearedStatus’
                  with actual type ‘Bool’
    • In the pattern: False
      In the pattern: Posting {pstatus = False}
      In an equation for ‘toMyP’:
          toMyP t p@(Posting {pstatus = False})
            = MyP (tdate t) (paccount p) <$> listToMaybe (amounts $ pamount p)
johannesgerer commented 7 years ago

fixed see https://travis-ci.org/johannesgerer/buchhaltung