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?
View all comments
Show parent comment
1
u/Exact_Ordinary_9887 Jul 17 '25 edited Jul 17 '25
the reference is useless in the context of my problem
the closes is: Lucas DiCioccio's Blog - How I write PureScript web-apps: Part-III
but I can not compile it
I was able to modify basic purescript example
https://github.com/bigos/Pyrulis/blob/792e34594bbf289ffdcac0292d0638e3b9d03a92/Purescript/halogen/counter/src/Main.purs#L17
and add a function to make it more like elm
but purescript will be useless to me unless i can solve this problem with configuring main
I can pass the flagdata to the component, but how do I have cometrhing that is not hardcoded but read from the HTML page that has the index.js
The page will be generated dynamically, and I need to pass the flagdata to purescript
If I can not do it, what is the point of learning PureScript? I can not spend long time mastering PS if I do'nt know if in the end I will be able to solve this simple problem or not. Without this solution PS is useless to me.