Skip to main content

Questions tagged [purescript]

PureScript is a Haskell-like language that compiles to JavaScript.

Filter by
Sorted by
Tagged with
1 vote
1 answer
103 views

For context, I wrote a function, get_servers, for the game Bitburner which is usually played by writing JavaScript code. Instead, I used PureScript to write the ...
nicoty's user avatar
  • 329
1 vote
1 answer
95 views

Given: data NonEmpty a = NonEmpty a (Array a) I completed the following exercise from PureScript by Example: Write a Foldable instance for NonEmpty. Hint: ...
Kevin Meredith's user avatar
-6 votes
3 answers
203 views

the below code does what it needs to do. However I would like to know if there are better (shorter) ways to express the below while maintaining the explicitness of showing the decision like with the ...
robkuz's user avatar
  • 129
5 votes
1 answer
474 views

I'm trying to transition from JavaScript to PureScript (a Haskell spinoff that transpiles to JavaScript). For starters I coded this: ...
adrianton3's user avatar