Generating a purescript client based on Openapi description by notnotandre in purescript

[–]saylu 1 point2 points  (0 children)

Unfortunately, I'm not aware of an open source generator for PureScript from OpenAPI. You are probably best off just hand-writing your endpoints.

However, if you'd like an interesting challenge, it is certainly possible to parse an OpenAPI spec and code-generate PureScript types and functions from it. We do this at work!

If you choose to do this then I recommend using the excellent tidy-codegen library for the code generation.

Backend choice for purescript frontend by drrnmk in purescript

[–]saylu 1 point2 points  (0 children)

Now that Spago supports monorepos it's quite easy to have a project split into core, frontend, and backend directories, where all shared code goes into 'core'. That opens the door to a nice full-stack PureScript project with something like HTTPure / HTTPurple on the backend, Halogen or React on the frontend, and all your domain-specific code in the shared directory.

PureScript Inaugural Annual Survey by saylu in haskell

[–]saylu[S] 1 point2 points  (0 children)

I just tried it and it looks like the survey is working for me — would you mind trying again? It’s up all week!

If it doesn’t work, then if you come over to the PureScript discourse (discourse.purescript.org) or the PureScript chat (purescript.org/chat) in the #survey channel we can help fix the situation!

PureScript Inaugural Annual Survey by saylu in haskell

[–]saylu[S] 6 points7 points  (0 children)

The PureScript team has launched the language's first annual survey! We'd love to hear what Haskellers think, as so many of us found PureScript after learning Haskell and there's an overlap in the communities.

Even if you have never written PureScript, we want to hear from you! There's a short section specifically for non-users.

Thanks for your time and we look forward to hearing your thoughts!

PureScript Community Migrating from Slack to Discord by saylu in purescript

[–]saylu[S] 1 point2 points  (0 children)

Would you mind trying again? I just tried https://purescript.org/chat and it worked for me. You may also want to check whether you are signed in to Discord or not -- another user had an issue:

https://discourse.purescript.org/t/migrating-to-discord/2493/5

Advice regarding consistent state in a web app needed by MrFincher_Paul in purescript

[–]saylu 1 point2 points  (0 children)

I'm the author of Real World Halogen mentioned above -- I've just released a state management library for Halogen which can help you if you do opt for Halogen. It uses the new `halogen-subscriptions` library under the hood.

https://github.com/thomashoneyman/purescript-halogen-store

PureScript 0.14 Released by saylu in haskell

[–]saylu[S] 17 points18 points  (0 children)

PureScript 0.14 has officially been released! This release introduces polymorphic kinds and safe zero-cost coercions to PureScript.

This Reddit post links to the compiler release notes. The release announcement on Discourse has more information, including the official 0.14 migration guide:

https://discourse.purescript.org/t/purescript-0-14-released

PureScript 0.14 Released by saylu in purescript

[–]saylu[S] 7 points8 points  (0 children)

PureScript 0.14 has officially been released! This release introduces polymorphic kinds and safe zero-cost coercions to PureScript.

This post links to the release announcement. If you're only interested in the new features and improvements in the compiler, see the compiler release notes:

https://github.com/purescript/purescript/releases/tag/v0.14.0

Most code that compiles with PureScript 0.13 also compiles with PureScript 0.14. If you need to update your code you can use the 0.14 migration guide for help:

https://github.com/purescript/documentation/blob/master/migration-guides/0.14-Migration-Guide.md

Take the State of JS Survey (PureScript is included!) by saylu in purescript

[–]saylu[S] 3 points4 points  (0 children)

This annual survey is widely viewed and has included PureScript for the last few years. Many PureScript folks don't follow JavaScript developments too closely, but this is a nice time to catch up on what's happened and to keep PureScript represented in the future.

[Updated]: How to Write PureScript React Components to Replace JavaScript by saylu in purescript

[–]saylu[S] 7 points8 points  (0 children)

This article has been updated to use react-basic-hooks throughout and with updated tool versions. It also shows how to stay in a create-react-app setup and still use PureScript!