Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
50 views

Consider the following recursive data type: data Chain a = End | Link a (Chain a) By deriving a Generic instance for this recursive type, show can be defined in terms of genericShow: derive instance ...
jfMR's user avatar
  • 25.2k
1 vote
1 answer
118 views

I'm barely getting started with Purescript, and I hit a snag quite quickly. Consider the simple (and very artificial) example below: module Main where import Prelude import Data.String.Common (...
SolarBear's user avatar
  • 4,617
1 vote
1 answer
57 views

I have a complex JSON which can have variable sub-JSONs inside it, each with their own schema. Here is an illustration of its structure: [ "node_level": "unit", "name"...
stasp's user avatar
  • 70
0 votes
1 answer
253 views

I'm trying to get a hello-world Purescript project working on NixOS, and am encountering an error trying to get spago to build it. The installation of dependencies fails with the following error: [...
mherzl's user avatar
  • 6,320
0 votes
1 answer
52 views

Apparently, Halogen lacks "dialog" value of method attribute. As of writing the words, the method attribute in Halogen has only get and post values. The good news though is Halogen says that ...
Hi-Angel's user avatar
  • 5,875
1 vote
2 answers
207 views

This would seem like a basic question, but I found no information on it. Websites don't typically consist of a single page. E.g. Stack Overflow has a menu on the left with Home, Questions, Tags links, ...
Hi-Angel's user avatar
  • 5,875
0 votes
2 answers
79 views

I'm writing a backend, and I need to execute certain command with text passed via stdin, then read the result from stdout. Such utilities provided by Node.ChildProcess module, except I don't see any ...
Hi-Angel's user avatar
  • 5,875
1 vote
1 answer
57 views

I am learning PureScript due to not being satisfied (in particular) with TypeScript's type safety of what's called "records" in PS. While doing so I stumble upon the exact same problem in PS,...
Hi-Angel's user avatar
  • 5,875
2 votes
1 answer
267 views

I am trying to set up a Docker development environment with PureScript. While trying to install Spago I get an error from the Docker builder. I am using the "node:22" image as a starting ...
John F. Miller's user avatar
2 votes
2 answers
266 views

From PureScript's Data.Functor.Invariant documentation (emphasis mine): A type of functor that can be used to adapt the type of a wrapped function where the parameterised type occurs in both the ...
toraritte's user avatar
  • 8,725
7 votes
0 answers
172 views

At this point in my learning journey, I simply accepted that this function is called pure (both in Haskell and in PureScript), but it would have helped a lot if I had known the reasoning behind this ...
toraritte's user avatar
  • 8,725
1 vote
1 answer
73 views

> "lo" <> "fa" "lofa" > 1 <> 2 Error found: in module $PSCI at :1:1 - 1:7 (line 1, column 1 - line 1, column 7) No type class instance was found for ...
toraritte's user avatar
  • 8,725
1 vote
0 answers
90 views

Take a look at this PureScript code: type MyOtherProps = (value :: String) type MyProps = (a :: String) a :: forall props phantom allProps . Union MyProps MyOtherProps allProps => Union ...
Jose Quesada's user avatar
1 vote
1 answer
286 views

I use spago to build src/Main.purs to output/Main/index.js. I am trying to use Vite for the bundling tool and have successfully loaded output/Main/index.js in src/main.ts. Vite can import image files, ...
topica's user avatar
  • 329
2 votes
1 answer
137 views

In the paper Stack Safety for Free, Phil Freeman defines the MonadRec type class as follows. class (Monad m) <= MonadRec m where tailRecM :: forall a b. (a -> m (Either a b)) -> a -> m b ...
Aadit M Shah's user avatar
  • 74.5k

15 30 50 per page
1
2 3 4 5
41