While doing exercises of chapter 3 of the Purescript by Example book was puzzled by this: The exercise is to write an isInBook :: String -> String ...
While doing exercises of chapter 3 of the Purescript by Example book was puzzled by this: The exercise is to write an isInBook :: String -> String ...
I am new to Purescript so I was trying to implement fold left and fold right (aka reduce) for my custom Tree data structure, but I am having problem i ...
I am new to PureScript so I am re-creating some basic functions, and I wanted to recreate "takeEnd" function which takes specified number of elements ...
I'm quite new to Purescript and I am trying to process some user input (received from stdin) but my best approach is this one: In which I use the N ...
Can someone tell me what is the use case of purescript-variants or variants in general The documentation is very well written but I can't find any re ...
I'm a newbie at PureScript trying out some code at this link. I've pasted the code here: I encountered this error: Could not match kind Type -> ...
I got the following data type: data Icon = IconCircle | IconSquare | IconStar I need an array of all possible Icons?: allPossible :: Array Icon al ...
I'm learning Halogen at the moment but I have a hard time finding how to chain actions. Let's say I have a simple article list component. I also have ...
I want to colorize my string with ASCII colors, but the following code... data Color = White | Red | Green | Yellow colorizeWith :: Color -> Stri ...
Why does this give me the error 'Argument list lengths differ in declaration compare'. But if I change the last line to then it compiles. I thou ...
as title says, I want to know about how to get stdin using Purescript. I want to input string using my keyboard. that's all. in fact, I can find som ...
Previously I had this type: And for this type I had this functions I want to convert Directions to newtype, but I also want to use the same synt ...
I am trying to pick up PureScript. Something I do a lot in JS is the following: let start; function step(timestamp) { if (start === undefined) ...
I just started with purescript. Running spago build always return an error which says - Any clue as to where I'm going wrong? https://i.stack.imgur ...
I was trying to write a function that can get the data that a newtype wraps. This fails to compile and complains But when I do It works fine ...
What I want is following, I have a row type: type FooBarBaz = ( foo :: Int , bar :: String , baz :: Boolean ) Then a need a function that t ...
I have wrapper type for NonEmptyList of my custom type Cell: I trying to create Show instance for Cells as well with: But it raises Orphan insta ...
While looking at poor runtime performance of some Purescript code I wrote, I noticed that the generated Javascript code contains dictionary passing fo ...
Consider this intuitive example, where one attempts to use the (+) operator on two NewTypes derived from Number: However, attempting this operation ...
I have created an extendable record type and how can I return the minimal base type without the compiler throwing error. I have a record with type, ...