-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from JordanMartinez/development
Make next major release: PS-0.12.x-v0.9.0
- Loading branch information
Showing
102 changed files
with
505 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Basic Syntax | ||
|
||
Read through these files in their order. To further grasp the concept, write your own version of the code and see if it still compiles by running: | ||
```bash | ||
pulp --psc-package build | ||
``` | ||
|
||
To see what the documentation looks like, run this command: | ||
```bash | ||
pulp --psc-package docs | ||
``` | ||
Then, open the file, `./generated-docs/Syntax/Documentation.md`, to see what it outputs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
-- | This is a single-line documentation. | ||
|
||
-- | This | ||
-- | is | ||
-- | a | ||
-- | multi-line | ||
-- | documentation block, not a comment. | ||
-- | Because it appears above the module declaration below, | ||
-- | it will be combined with the next few documentation blocks. | ||
|
||
-- | One can use markdown inside of documentation: | ||
-- | | ||
-- | Look an unordered list: | ||
-- | - item 1 | ||
-- | - item 2 | ||
-- | | ||
-- | An ordered list: | ||
-- | 1. Item | ||
-- | 2. Item | ||
-- | 3. Item | ||
-- | | ||
-- | A table: | ||
-- | | ||
-- | | One | Two | Three | | ||
-- | | - | - | - | | ||
-- | | a | b | c | ||
-- | | ||
-- | Some code: | ||
-- | ```purescript | ||
-- | f :: Int | ||
-- | f = 4 | ||
-- | ``` | ||
|
||
-- | Module-level documentation | ||
module Syntax.Documentation where | ||
|
||
-- | value documentation | ||
value :: Int | ||
value = 4 | ||
|
||
-- | function documentation | ||
function :: Int -> String | ||
function _ = "easy" | ||
|
||
-- | data documentation | ||
data SomeData = SomeData | ||
|
||
-- | type documentation | ||
type MyType = String | ||
|
||
-- | newtype documentation | ||
newtype SmallInt = SmallInt Int | ||
|
||
-- | type class documentation | ||
class MyClass a b | a -> b | ||
|
||
-- | instance documentation | ||
instance example :: MyClass String Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
21-Hello-World/03-Hello-World-and-Effects/src/06-Mutable-State/Readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.