Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ All exercises live in `exercises` folder. Here's the standard folder structure:
│ └─ <ExerciseName>.purs
├─ test
│ └─ Main.purs
├─ packages.dhall
└─ spago.dhall
└─ spago.yaml
```

Creating a new exercise requires modification to:
Expand All @@ -54,9 +53,8 @@ Creating a new exercise requires modification to:
The remaining files:

- `test/Main.purs` - contains tests
- `spago.dhall` and `packages.dhall` - these are copied from the template
project `template/*.dhall` and should not be directly modified (see the
following section)
- `spago.yaml` - copied from the template project and should not be directly
modified (see the following section)

#### Steps for adding a new exercise

Expand All @@ -68,7 +66,7 @@ The remaining files:
- Add exercise details to `config.json`
- Add tests to `test/Main.purs`
- Add your solution to `examples/src/<ExerciseName>.purs`
- Run `bin/test.sh` to make sure all tests pass
- Run `scripts/ci` to make sure all tests pass
- Commit, push and make a pull request
- Check that GitHub CI passes

Expand Down
46 changes: 0 additions & 46 deletions bin/test-separate.sh

This file was deleted.

75 changes: 0 additions & 75 deletions bin/test.sh

This file was deleted.

8 changes: 4 additions & 4 deletions reference/implementing-a-concept-exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ languages
├── src
| └── <NAME>.purs
├── test
| └── Test.purs
└── bower.json
| └── Main.purs
└── spago.yaml
</pre>

## Step 1: Add code files

These are files specific to the PureScript track:

- `src/<NAME>.purs`: the stub implementation file, which is the starting point for students to work on the exercise.
- `test/Test.purs`: the test suite.
- `bower.json`: the bower project file.
- `test/Main.purs`: the test suite.
- `spago.yaml`: the Spago project configuration.
- `.meta/Exemplar.purs`: an exemplar implementation that passes all the tests.

## Step 2: Add documentation files
Expand Down
Loading