https://github.com/agrafix/purescript-preface
An alternative to the Prelude for teaching purposes
https://github.com/agrafix/purescript-preface
Last synced: 3 months ago
JSON representation
An alternative to the Prelude for teaching purposes
- Host: GitHub
- URL: https://github.com/agrafix/purescript-preface
- Owner: agrafix
- Created: 2016-09-04T16:24:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-04T16:25:07.000Z (almost 10 years ago)
- Last Synced: 2025-03-08T20:48:57.872Z (over 1 year ago)
- Language: PureScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# purescript-preface
A simpler alternative to the Prelude.
- [Module Documentation](docs/Preface.md)
- [Example](test/Main.purs)
## Getting Started
Clone this repository. Then, using [Pulp](https://github.com/bodil/pulp):
pulp build
pulp test
## Design
The Preface is intended to be a simpler introduction to the concepts of PureScript for beginners, specifically those
coming from Javascript. With that in mind, here are some design goals:
- Use simple types - no type classes, effect rows, etc.
- Provide excellent documentation with examples.
- Name functions using simple names which explain their purpose.
The Preface is meant to be a _teaching tool_, such that users should plan to graduate to the regular set of PureScript core libraries once they are familiar with the ideas. However, the Preface may be a practical alternative for some very simple tasks.