-
Notifications
You must be signed in to change notification settings - Fork 76
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
bidirectional route parsing #120
Comments
Yeah that'd be great to have.
|
ah, good thoughts. i think an external lib would be fine :) i've tinkered with plenty of haskell impls in the past, so i'll take a peek at those, reflect on purescript's differences (this weekend?) and update the issue here. |
@bigs You can check my port of boomerang library. Recently I've added https://github.com/paluh/purescript-boomerang/blob/master/src/Text/Boomerang/Generic.purs here is a simple usage example: https://github.com/paluh/purescript-boomerang/blob/master/test/Text/Boomerang/String.purs#L66 Additionally there is a project which is based on old generics and generates bidirectional routes fully automatically. I want to extend its https://github.com/paluh/purescript-routing-bob I have also Unfortunately both libraries are not ported to purescript-0.11 yet. Let me know what do you think. I'm really open to propositions and discussion. |
@paluh lovely! going to dig into these this afternoon. not finding a ton of resources on it and i'm fairly new to PS (tho quite experienced w/ haskell & ML)—what are the breaking changes in 0.11? |
an update—things picked up quite a bit with the client so i'm only now getting to frontend work. this is still something i'm interesting in pursuing! i think it will probably rely on generics. i'll keep you posted if i make any forward progress. |
bumping this! i've since embarked on a rather extensive project and found that |
hey!
been looking into using
pux
for a project with a client and am generally feeling good about it! i was wondering if you'd be interested in me putting together a PR implementing bidirectional parsing for the routing layer, i.e. extending the api to create parser/generators that can be interpreted to parse a string into an ADT or, using the same construction, render an ADT into a string representing the route.this should eliminate the need for functions like this one in the todomvc demo and would give me a nice opportunity to get more intimate with
pux
.cool project!
cole
The text was updated successfully, but these errors were encountered: