purescript-cookbook
purescript-cookbook copied to clipboard
An unofficial Cookbook for PureScript
**Recipe Name** ``` CapabilityPatternWithCheckedExceptions ``` **Recipe Description** Shows how the "onion architecture" / "capability pattern" can have `ExceptT` and `ExceptV` instances. **Comments** I have already implemented this recipe, what remains...
**Recipe Name** ``` EchoServerNetSocketNode ``` Each recipe name must be unique. Use PascalCase. **Recipe Description** Create a new server, listen to connections, and echo back the inputs.
I don't think the "failing" test is effectively testing anything, and should not be an example of testing for cookbook readers. See discussion in https://github.com/JordanMartinez/purescript-cookbook/pull/257#discussion_r549800622
Demonstrates how to write this recipe in a more comparable way to the react example in #249.
I was initially confused about how `ButtonMessage` was being used, and then realized that the component's output value is simply ignored by the parent when incrementing toggle count. So this...
We're using `div id="app"` in [index.html](https://github.com/JordanMartinez/purescript-cookbook/blob/master/recipes/HelloConcur/web/index.html), but TPS doesn't have access to this file, so `runWidgetInDom "app"` can't find what it needs. [try](https://try.ps.ai/?github=JordanMartinez/purescript-cookbook/master/recipes/HelloConcur/src/Main.purs) We probably need to use a similar...
We have a few `Components*HalogenHooks` recipes. Proposing we make the equivalent `ReactHooks` recipes: ``` ComponentsReactHooks ComponentsInputReactHooks ComponentsMultiTypeReactHooks ```
TPS is on [an old package](https://github.com/purescript/trypurescript/blob/master/staging/packages.dhall) set that does not include `polymorphic-vectors`. [try](https://try.ps.ai/?github=JordanMartinez/purescript-cookbook/master/recipes/AffGameSnakeJs/src/Main.purs)
TPS is on [an old package](https://github.com/purescript/trypurescript/blob/master/staging/packages.dhall) set that does not include Ace [try](https://try.ps.ai/?github=JordanMartinez/purescript-cookbook/master/recipes/AceEditorHalogenHooks/src/Main.purs)
Show all available commands for a recipe with something like: ``` make MyRecipeName-help ``` Planning to pull out the command-printing code from `scripts/newRecipe.sh` into a `scripts/showHelp.sh`, and call this new...