Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.3 not backwards-compatible with code using 1.4.2 #35

Closed
david-christiansen opened this issue Jul 23, 2014 · 4 comments
Closed

1.4.3 not backwards-compatible with code using 1.4.2 #35

david-christiansen opened this issue Jul 23, 2014 · 4 comments

Comments

@david-christiansen
Copy link
Contributor

Building Idris (both the Hackage release and master) with Trifecta 1.4.3 yields the following error:

[68 of 87] Compiling Idris.ParseHelpers ( src/Idris/ParseHelpers.hs, dist/build/Idris/ParseHelpers.o )

src/Idris/ParseHelpers.hs:370:47:
    No instance for (Show IState) arising from a use of ‘position’
    In the second argument of ‘liftM’, namely ‘position’
    In the expression: liftM ((+ 1) . fromIntegral . column) position
    In an equation for ‘indent’:
        indent = liftM ((+ 1) . fromIntegral . column) position

With Trifecta 1.4.2, this error does not occur.

The change seems to be a result of commit 16cd121. It seems odd that we should be required to have a Show instance for the internal state.

@david-christiansen
Copy link
Contributor Author

Ah, this seems to be due to ekmett/parsers@fbbac6e

I'll update things accordingly in Idris. But shouldn't extra class constraints give a version bump to at least 1.5, according to the PVP?

@ekmett
Copy link
Owner

ekmett commented Jul 25, 2014

You are correct.

@ekmett
Copy link
Owner

ekmett commented Jul 25, 2014

1.5 shipped. The fact that it needs Show on the state is quite strange I agree. I'll dig into that.

@ekmett
Copy link
Owner

ekmett commented Jul 25, 2014

I've fixed the Show constraints in parsers 0.12.1.

They should no longer be required.

@ekmett ekmett closed this as completed Jul 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants