You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ Running a web-compatible recipe:
87
87
88
88
| Node | Web Browser | Recipe | Description |
89
89
| :-: | :-: | - | - |
90
+
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/AceEditorHalogenHooks/src/Main.purs) - [fixme](recipes/AceEditorHalogenHooks/tryFixMe.md)) |[AceEditorHalogenHooks](recipes/AceEditorHalogenHooks)| A Halogen Hooks port of the ["Ace Editor" Halogen Example](https://github.com/purescript-halogen/purescript-halogen/tree/master/examples/ace). |
90
91
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/AddRemoveEventListenerJs/src/Main.purs) - [fixme](recipes/AddRemoveEventListenerJs/tryFixMe.md)) |[AddRemoveEventListenerJs](recipes/AddRemoveEventListenerJs)| This recipe shows how to add and remove an event listener to an HTML element. |
91
92
|:heavy_check_mark:||[AffjaxPostNode](recipes/AffjaxPostNode)| Performs a simple HTTP Post request using the [Affjax](https://pursuit.purescript.org/packages/purescript-affjax/) library. |
92
93
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/BasicHalogenHooks/src/Main.purs)) |[BasicHalogenHooks](recipes/BasicHalogenHooks)| Displays a button that toggles the label to "On" and "Off". |
@@ -113,6 +114,9 @@ Running a web-compatible recipe:
113
114
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/DogImagesReactHooks/src/Main.purs)) |[DogImagesReactHooks](recipes/DogImagesReactHooks)| Fetches random dog images from the [Dog API](https://dog.ceo/dog-api/). |
114
115
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/DragAndDropHalogenHooks/src/Main.purs)) |[DragAndDropHalogenHooks](recipes/DragAndDropHalogenHooks)| A Halogen port of the ["Files - Drag-and-Drop" Elm Example](https://elm-lang.org/examples/drag-and-drop). |
115
116
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/DragAndDropReactHooks/src/Main.purs)) |[DragAndDropReactHooks](recipes/DragAndDropReactHooks)| A React port of the ["Files - Drag-and-Drop" Elm Example](https://elm-lang.org/examples/drag-and-drop). |
117
+
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/DriverIoHalogenHooks/src/Main.purs)) |[DriverIoHalogenHooks](recipes/DriverIoHalogenHooks)| Demonstrates how to communicate with a Halogen application by sending messages to and receiving messages from the root-level component via the driver. |
118
+
||:heavy_check_mark:|[DriverRoutingHalogenHooks](recipes/DriverRoutingHalogenHooks)| Demonstrates using `hashchange` events to drive the root component in a Halogen application via the driver. |
119
+
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/DriverWebSocketsHalogenHooks/src/Main.purs)) |[DriverWebSocketsHalogenHooks](recipes/DriverWebSocketsHalogenHooks)| Demonstrates using a WebSocket to drive the main component in a Halogen application. |
116
120
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/FileUploadHalogenHooks/src/Main.purs)) |[FileUploadHalogenHooks](recipes/FileUploadHalogenHooks)| A Halogen port of the ["Files - Upload" Elm Example](https://elm-lang.org/examples/upload). |
117
121
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/FileUploadReactHooks/src/Main.purs)) |[FileUploadReactHooks](recipes/FileUploadReactHooks)| A React port of the ["Files - Upload" Elm Example](https://elm-lang.org/examples/upload). |
118
122
||:heavy_check_mark:|[FindDomElementJs](recipes/FindDomElementJs)| This recipe shows how to find elements in the DOM by using query selectors. |
@@ -129,6 +133,7 @@ Running a web-compatible recipe:
129
133
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/ImagePreviewsHalogenHooks/src/Main.purs) - [fixme](recipes/ImagePreviewsHalogenHooks/tryFixMe.md)) |[ImagePreviewsHalogenHooks](recipes/ImagePreviewsHalogenHooks)| A Halogen port of the ["Files - Drag-and-Drop" Elm Example](https://elm-lang.org/examples/drag-and-drop) with an additional feature to display image thumbnails. |
130
134
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/ImagePreviewsReactHooks/src/Main.purs)) |[ImagePreviewsReactHooks](recipes/ImagePreviewsReactHooks)| A React port of the ["Files - Image-Previews" Elm Example](https://elm-lang.org/examples/image-previews). |
131
135
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/InterpretHalogenHooks/src/Main.purs)) |[InterpretHalogenHooks](recipes/InterpretHalogenHooks)| Demonstrates how to use a custom monad (in this case, using `ReaderT` with `Aff` as the effect type) for a component, and then interpreting that custom monad back down to `Aff`, so it can be run as a normal component. |
136
+
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/KeyboardInputHalogenHooks/src/Main.purs)) |[KeyboardInputHalogenHooks](recipes/KeyboardInputHalogenHooks)| This example demonstrates how to selectively capture keyboard events and, more generally, how to use `EventSource`s in Halogen. |
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/NumbersHalogenHooks/src/Main.purs)) |[NumbersHalogenHooks](recipes/NumbersHalogenHooks)| A Halogen port of the ["Random - Numbers" Elm Example](https://elm-lang.org/examples/numbers). |
134
139
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/NumbersReactHooks/src/Main.purs)) |[NumbersReactHooks](recipes/NumbersReactHooks)| A React port of the ["Random - Numbers" Elm Example](https://elm-lang.org/examples/numbers). |
@@ -137,8 +142,10 @@ Running a web-compatible recipe:
137
142
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/PositionsReactHooks/src/Main.purs)) |[PositionsReactHooks](recipes/PositionsReactHooks)| A React port of the ["Random - Positions" Elm Example](https://elm-lang.org/examples/positions). |
138
143
|:heavy_check_mark:||[RandomNumberGameNode](recipes/RandomNumberGameNode)| This recipe shows how to build a "guess the random number" game using a custom `AppM` monad via the `ReaderT` design pattern and `Aff`, storing the game state in a mutable variable via a `Ref`. |
139
144
|:heavy_check_mark:||[ReadPrintFileContentsNode](recipes/ReadPrintFileContentsNode)| Reads a file's contents and prints it to the console. |
145
+
||:heavy_check_mark:|[RoutingHashHalogenClassic](recipes/RoutingHashHalogenClassic)| This recipe shows how to use `purescript-routing` to do client-side hash-based routing in a Halogen-based single-page application (SPA). |
140
146
||:heavy_check_mark:|[RoutingHashLog](recipes/RoutingHashLog)| This recipe demonstrates hash-based routing with `purescript-routing`. No web framework is used. |
141
147
||:heavy_check_mark:|[RoutingHashReactHooks](recipes/RoutingHashReactHooks)| This recipe shows how to use `purescript-routing` to do client-side hash-based routing in a React-based single-page application (SPA). |
148
+
||:heavy_check_mark:|[RoutingPushHalogenClassic](recipes/RoutingPushHalogenClassic)| This recipe shows how to use `purescript-routing` to do client-side push-state routing in a Halogen-based single-page application (SPA). |
142
149
||:heavy_check_mark:|[RoutingPushReactHooks](recipes/RoutingPushReactHooks)| This recipe shows how to use `purescript-routing` to do client-side push-state routing in a React-based single-page application (SPA). |
143
150
|:heavy_check_mark:||[RunCapabilityPatternNode](recipes/RunCapabilityPatternNode)| A skeletal version of an application structuring pattern using purescript-run and free dsls. |
144
151
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/ShapesHalogenHooks/src/Main.purs)) |[ShapesHalogenHooks](recipes/ShapesHalogenHooks)| Demonstrates rendering of SVG shapes. |
@@ -150,6 +157,7 @@ Running a web-compatible recipe:
150
157
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/TextFieldsHalogenHooks/src/Main.purs)) |[TextFieldsHalogenHooks](recipes/TextFieldsHalogenHooks)| A Halogen port of the ["User Interface - Text Fields" Elm Example](https://elm-lang.org/examples/text-fields). |
151
158
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/TextFieldsReactHooks/src/Main.purs)) |[TextFieldsReactHooks](recipes/TextFieldsReactHooks)| A React port of the ["User Interface - Text Fields" Elm Example](https://elm-lang.org/examples/text-fields). |
152
159
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/TicTacToeReactHooks/src/Main.purs) - [fixme](recipes/TicTacToeReactHooks/tryFixMe.md)) |[TicTacToeReactHooks](recipes/TicTacToeReactHooks)| A PureScript port of the official reactjs.org documentation's [Tutorial: Intro to React](https://reactjs.org/tutorial/tutorial.html) example. |
160
+
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/TimeHalogenHooks/src/Main.purs)) |[TimeHalogenHooks](recipes/TimeHalogenHooks)| A Halogen port of the ["Time - Time" Elm Example](https://elm-lang.org/examples/time). |
153
161
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/TimeReactHooks/src/Main.purs)) |[TimeReactHooks](recipes/TimeReactHooks)| A React port of the ["User Interface - Time" Elm Example](https://elm-lang.org/examples/time). |
154
162
|:heavy_check_mark:|:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/ValueBasedJsonCodecLog/src/Main.purs)) |[ValueBasedJsonCodecLog](recipes/ValueBasedJsonCodecLog)| This recipe shows how to use [`codec`](https://pursuit.purescript.org/packages/purescript-codec/3.0.0) and [`codec-argonaut`](https://pursuit.purescript.org/packages/purescript-codec-argonaut/) to write value-based bidirectional JSON codecs to encode and decode examples written in "meta-language." |
155
163
||:heavy_check_mark: ([try](https://try.purescript.org/?github=/JordanMartinez/purescript-cookbook/master/recipes/WindowPropertiesJs/src/Main.purs)) |[WindowPropertiesJs](recipes/WindowPropertiesJs)| This recipe shows how to get and print various properties in the browser's `window` object. |
0 commit comments