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

Idris HEAD seems to require some hints to make toState' and fromState' type-check #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stepcut
Copy link

@stepcut stepcut commented Aug 8, 2014

This patch fixes this error when using Idris from git HEAD

$ make
idris --build iquery.ipkg
Type checking ./IQuery/State.idr
./IQuery/State.idr:94:12:Can't convert
        State STInt
with
        State t
./IQuery/State.idr:116:9:Can't convert
        State STInt
with
        State t
make: *** [build] Error 1

@edwinb
Copy link

edwinb commented Aug 8, 2014

This shouldn't be necessary - I'll look into it. Plenty of tests should have caught this, so it's a bit mysterious...

@edwinb
Copy link

edwinb commented Aug 8, 2014

Oops, yes, found the problem (but not the solution yet...). Hopefully it'll be a quick fix!

@edwinb
Copy link

edwinb commented Aug 8, 2014

I've made a change to master to deal with function parameters properly, so this should be unnecessary now...

On 8 Aug 2014, at 05:52, stepcut [email protected] wrote:

This patch fixes this error when using Idris from git HEAD

$ make
idris --build iquery.ipkg
Type checking ./IQuery/State.idr
./IQuery/State.idr:94:12:Can't convert
State STInt
with
State t
./IQuery/State.idr:116:9:Can't convert
State STInt
with
State t
make: *** [build] Error 1

You can merge this Pull Request by running

git pull https://github.com/stepcut/iQuery master
Or view, comment on, or merge it at:

#14

Commit Summary

• Idris HEAD seems to require some hints to make toState' and fromState' type-check
File Changes

• M IQuery/State.idr (18)
Patch Links:

https://github.com/idris-hackers/iQuery/pull/14.patch
https://github.com/idris-hackers/iQuery/pull/14.diff

Reply to this email directly or view it on GitHub.

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

Successfully merging this pull request may close these issues.

2 participants