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
+6-6
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
- PureScript syntax highlighting
12
12
- Run and print output or show resulting JavaScript
13
13
- Multiple view modes: code, output or both
14
-
-Persistent session
14
+
-Shareable code and editor state via URL
15
15
- Load PureScript code from GitHub Gists or repository files
16
16
17
17
### Control Features via the Query String
@@ -28,6 +28,11 @@ Most of these features can be controlled not only from the toolbar, but also usi
28
28
- Example: `gist=37c3c97f47a43f20c548`
29
29
- Notes: the file should be named `Main.purs` with the module name `Main`.
30
30
31
+
-**Load From URL**: Load compressed PureScript code using the `code` parameter
32
+
- Managed by Try PureScript and updated on editor state change to create shareable URLs
33
+
- Format: `code=<compressed string>`
34
+
- Example: `code=LYewJgrgNgpgBAWQIYEsB2cDuALGAnGIA` will set the editor state to the single line `module Main where`
35
+
31
36
-**View Mode**: Control the view mode using the `view` parameter
32
37
- Options are: `code`, `output`, `both` (default)
33
38
- Example: `view=output` will only display the output
@@ -40,11 +45,6 @@ Most of these features can be controlled not only from the toolbar, but also usi
40
45
- Options are: `true`, `false` (default)
41
46
- Example: `js=true` will print JavaScript code instead of the program's output
42
47
43
-
-**Session**: Load code from a session which is stored with [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) using the `session` parameter
44
-
- Usually managed by Try PureScript
45
-
- Example: `session=9162f098-070f-4053-60ea-eba47021450d` (Note: will probably not work for you)
46
-
- When used with the `gist` or `github` query parameters the code will be loaded from the source file and not the session
47
-
48
48
### Which Libraries Are Available?
49
49
50
50
Try PureScript aims to provide a complete, recent package set from <https://github.com/purescript/package-sets>. The available libraries are those listed in [`staging/spago.dhall`](./staging/spago.dhall), at the versions in the package set mentioned in [`staging/packages.dhall`](./staging/packages.dhall).
0 commit comments