Coder Social home page Coder Social logo

Comments (4)

paf31 avatar paf31 commented on July 22, 2024

@jdegoes This is the one remaining item on my list for 0.4, and I should have some time tomorrow evening to spend on it.

from purescript-halogen.

jdegoes avatar jdegoes commented on July 22, 2024

👍

from purescript-halogen.

paf31 avatar paf31 commented on July 22, 2024

So I made another attempt at this, here:

https://github.com/slamdata/purescript-halogen/tree/final2

I spent two hours on it, but I just kept coming up against typechecker issues:

  • I can't use [Attr i] because of impredicative type issues.
  • I lose the ability to use Semigroup on Attr i because you can't write things like class (Semigroup (f i)) <= Attr f so I have to use Plus which is a bit weird.
  • The type signatures and error messages are baffling. If I were a newcomer, I would probably find it pretty offputting.

I feel like I'm pretty close, but it's not working yet, and at this point, I'm starting to feel like it's a dead end, sadly.

Maybe I can address some of these issues by wrapping things with newtypes, instead of using rank-2 types, so I'll spend a little time on that and see how far I get.

from purescript-halogen.

paf31 avatar paf31 commented on July 22, 2024

Ok, newtypes fixed pretty much everything here 😄

It's still not entirely done, but things build and the demos work. I'll make a PR so that you can take a look.

from purescript-halogen.

Related Issues (20)

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.