ndmitchell / debug

Haskell library for debugging
BSD 3-Clause "New" or "Revised" License
122 stars 7 forks source link

Use typed Javascript #17

Closed ndmitchell closed 6 years ago

ndmitchell commented 6 years ago

And also the opaque types trick: https://codemix.com/opaque-types-in-javascript/

pepeiborra commented 6 years ago

Have you considered Purescript ? I suspect it would be far more likely to attract contributors.

ndmitchell commented 6 years ago

Is that based on personal experience or just knowledge of the general communities? Having tried both, it seems Purescript is a nightmare to setup and only starts to shine in larger programs - if you just want fairly simple DOM manipulation then TypeScript with it's close-to-Javascript feel seems like an advantage. But happy to hear alternative viewpoints.

pepeiborra commented 6 years ago

I don't really have hands on experience with either Purescript or Typescript. I wasn't aware that Purescript is hard to set up. My reasoning was that Purescript seems more likely to attract contributors than a typed superset of Javascript because debug is a Haskell package.

pepeiborra commented 6 years ago

I have been writing a PureScript port on the side and am currently halfway through.

ndmitchell commented 6 years ago

An existence proof of something working nicely in purescript would certainly convince me - I look forward to it, and certainly won't be doing anything on this until your experiments have concluded.

pepeiborra commented 6 years ago

Can close this now that we have switched to Elm for the frontend

ndmitchell commented 6 years ago

Yep