r/purescript • u/Exact_Ordinary_9887 • Jul 17 '25
Is it worth learning PureScript? So far the experience was less than ideal.
I am not a Java or SQL programmer, but I was able to quickly get up and going. The error messages made sense. The documentation had plenty of excellent examples.
Here you get confusing type errors. Some examples on the web appear to be broken on purpose, so they are useless. Type signatures are not examples. There is very little traffic on the discourse. Copilot gives nonsense answers and even contradicts itself.
So, I am asking, is there a light at the end of the tunnel? How did you get over the inability to write a simple variant of a simple project?
Was it worth to persist and why?
5
u/Intelligent_Bet9798 Jul 17 '25
What made you choose to learn it?
2
u/Swordlash Jul 18 '25
I personally don’t see that much reason once the JS backend landed in Haskell. There were many features that were lacking compared to GHC but there was no way around it. Now there is. One upside of purescript is that it’s light and fast, so you should still go for it if that’s something important for your usecase.
3
u/Sarwen Jul 17 '25
It really depends on how much you know Haskell. PureScript is a nice language. It's JavaScript interop is both very simple and powerful, unlike Elm. But you have to master Haskell quite well to feel at ease. AI won't help as it's to niche. I would say, once you understand how effects work in PureScript, everything should be simpler.
1
u/justinhj Jul 17 '25
Have you followed this book? In my experience it is a fantastic onboarding resource, especially if you already have some exposure to Haskell
https://book.purescript.org/ Foreword - PureScript by Example
1
u/ruby_object Jul 27 '25
After 10 days, I can say the experience has improved. I was able to bring two test apps, one in flame and one in halogen, to resemble my Elm example.
I can't imagine using PureScript at work. I still am convinced that Elm is the best solution for my needs. The only reason to persist with PureScript would be experiments with the type system. But I have no idea how that would affect my real-life work.