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

Problem compiling with idris-0.9.17 #15

Closed
mietek opened this issue May 16, 2015 · 7 comments
Closed

Problem compiling with idris-0.9.17 #15

mietek opened this issue May 16, 2015 · 7 comments

Comments

@mietek
Copy link

mietek commented May 16, 2015

Is this related to #14?

Type checking ./IQuery/State.idr
./IQuery/State.idr:30:7:
When elaborating right hand side of isObj:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:39:16:
When elaborating right hand side of stateVarExists:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:44:14:
When elaborating right hand side of initStateVar:
No such variable mkForeign
./IQuery/State.idr:48:3:
When elaborating right hand side of IQuery.State.case block in getStateVar:
When elaborating an application of function Prelude.Functor.map:
        No such variable mkForeign
./IQuery/State.idr:57:14:
When elaborating right hand side of stateCExists:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:62:10:
When elaborating right hand side of incCount:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:87:8:
When elaborating right hand side of access:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:94:12:
When elaborating right hand side of fromState':
No such variable mkForeign
./IQuery/State.idr:116:9:
When elaborating right hand side of toState:
No such variable mkForeign
./IQuery/State.idr:140:10:
When elaborating right hand side of newState:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
./IQuery/State.idr:149:14:
When elaborating right hand side of destroyState:
When elaborating an application of function Prelude.Monad.>>=:
        No such variable mkForeign
@BartAdv
Copy link
Contributor

BartAdv commented May 17, 2015

I haven't checked it, but I think there was some great renaming in Idris lately, and all constructors are now upper case. Try it.

@puffnfresh
Copy link
Member

FFI completely changed in Idris. There's a paper which describes the new FFI:

http://eb.host.cs.st-andrews.ac.uk/drafts/compile-idris.pdf

I imagine the changes will be pretty significant for IQuery.

@puffnfresh
Copy link
Member

Looks like the FFI made it to the Idris docs, too:

http://docs.idris-lang.org/en/latest/reference/ffi.html

@david-christiansen
Copy link
Member

david-christiansen commented May 17, 2015 via email

@foolswood
Copy link

Looks like someone's had a go at this: #17

@mietek mietek closed this as completed Feb 14, 2019
@ericoporto
Copy link

@puffnfresh sorry for Necro-commenting but the link you posted is forbidden, do you know if it's available somewhere, maybe you have a backup? I am trying to find this paper. Thanks.

@gallais
Copy link

gallais commented Jun 22, 2023

@ericoporto You can find it on the wayback machine: http://web.archive.org/web/20220430094757/https://eb.host.cs.st-andrews.ac.uk/drafts/compile-idris.pdf

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

7 participants