Git Product home page Git Product logo

iquery's People

Contributors

bartadv avatar leifw avatar raichoo avatar tauli avatar wolverian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iquery's Issues

Problem compiling with idris-0.9.17

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

Type-safe events

Currently, the Event type is representing every event, whereas certain properties are only available for certain events, for example, calling clientX on 'Change' event gives undefined which Idris thinks is Int and happily propagates javascript type silliness:)

I was thinking that maybe better would be to create separate types for various event types (mouse event, basic event etc...), and add some type classes to it to cover those cases (then event handlers and property 'getters' would only be working with appropriate types), but I wonder if there is some nicer way in dependently typed world.

Dependencies between Event and Elements

I've tried to add target function to get an element that caused an event. The Event module does not see the Elements (it's the other way around at the moment). I am wondering whether it wouldn't be better for the Event to depend on Elements (this would require to move onXXX functions there), but this would also require to remove abstract from Element, as its constructor would now be used in other module.

So maybe it's better to just merge those two? Any other ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.