Hledger: Hledger/UI/UITypes.hs:55:13: No instance for (Show (Day -> AppState -> AppState))

Created on 18 May 2016  Â·  12Comments  Â·  Source: simonmichael/hledger

When trying to rebuild hledger-ui-0.27.3 for Stackage Nightly today:

Hledger/UI/UITypes.hs:55:13:
    No instance for (Show (Day -> AppState -> AppState))
      (maybe you haven't applied enough arguments to a function?)
      arising from the second field of ‘AccountsScreen’
        (type ‘Day -> AppState -> AppState’)
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (Show Screen)
A BUG packaging ui

All 12 comments

Thanks. This was caused by https://github.com/ChrisKuklewicz/regex-tdfa/issues/2. I've revised hledger-lib-0.27 on hackage setting an upper bound on regex-tdfa which I think will take care of this.

And hledger-0.27, just to be safe.

Okay I thought so, but any chance you could support newer regex-tdfa?

From my understanding the Show instance should not have been provided and that is why Chris removed it.

Newer regex-tdfa is supported in hledger master branch, which will hopefully land in a new release fairly soon.

Thanks! New point releases would really help now since now none of hledger*-0.27 build any longer in Stackage Nightly.

In the meantime I think I have to move Stackage Nightly back to < 0.27 unfortunately - don't really want to go back on regex-tdfa.

Aiee, I see. I'll make point releases tomorrow. Rolling hledger back a major release seems potentially confusing, if necessary I think I'd rather have it excluded from the nightly.

Okay can do that for next nightly - thanks very much!

I have relaxed the regex-tdfa bound for hledger-lib and hledger 0.27 again, and I've released hledger-ui-0.27.4 to fix that package with newer regex-tdfa. Hopefully this takes care of it.

Thank you that is great!

Sorry, one more ask: any chance hledger-ui can support vty-5.5 ?

I've revised hledger-ui-0.27.4's upper bounds for vty and brick.

Thanks!

They are all in yesterday's Stackage Nightly now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonmichael picture simonmichael  Â·  8Comments

tonyxiao picture tonyxiao  Â·  7Comments

raehik picture raehik  Â·  7Comments

Timonsc picture Timonsc  Â·  4Comments

simonmichael picture simonmichael  Â·  8Comments