-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update library to Contributors library standards (#15)
- Loading branch information
1 parent
6e9c896
commit 02b0c77
Showing
16 changed files
with
210 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,19 @@ | ||
--- | ||
name: Bug report | ||
about: Report an issue | ||
title: "" | ||
labels: bug | ||
assignees: "" | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of the bug. | ||
|
||
**To Reproduce** | ||
A minimal code example (preferably a runnable example on [Try PureScript](https://try.purescript.org)!) or steps to reproduce the issue. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,21 @@ | ||
--- | ||
name: Change request | ||
about: Propose an improvement to this library | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**Is your change request related to a problem? Please describe.** | ||
A clear and concise description of the problem. | ||
|
||
Examples: | ||
|
||
- It's frustrating to have to [...] | ||
- I was looking for a function to [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what a good solution to you looks like, including any solutions you've already considered. | ||
|
||
**Additional context** | ||
Add any other context about the change request here. |
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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: PureScript Discourse | ||
url: https://discourse.purescript.org/ | ||
about: Ask and answer questions here. | ||
- name: Functional Programming Slack | ||
url: https://functionalprogramming.slack.com | ||
about: For casual chat and questions (use https://fpchat-invite.herokuapp.com to join). |
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,11 @@ | ||
**Description of the change** | ||
Clearly and concisely describe the purpose of the pull request. If this PR relates to an existing issue or change proposal, please link to it. Include any other background context that would help reviewers understand the motivation for this PR. | ||
|
||
--- | ||
|
||
**Checklist:** | ||
|
||
- [ ] Added the change to the changelog's "Unreleased" section with a link to this PR and your username | ||
- [ ] Linked any existing issues or proposals that this pull request should close | ||
- [ ] Updated or added relevant documentation in the README and/or documentation directory | ||
- [ ] Added a test for the contribution (if applicable) |
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,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up a PureScript toolchain | ||
uses: purescript-contrib/setup-purescript@main | ||
|
||
- name: Cache PureScript dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} | ||
path: | | ||
.spago | ||
output | ||
- name: Install dependencies | ||
run: spago install | ||
|
||
- name: Build source | ||
run: spago build --no-install --purs-args '--censor-lib --strict' | ||
|
||
- name: Run tests | ||
run: spago test --no-install |
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 |
---|---|---|
@@ -1,16 +1,8 @@ | ||
/.* | ||
!/.gitignore | ||
!/.github | ||
!/.travis.yml | ||
.* | ||
!.gitignore | ||
!.github | ||
!.editorconfig | ||
|
||
# Dependencies | ||
bower_components | ||
node_modules | ||
|
||
# Generated files | ||
output | ||
generated-docs | ||
|
||
# Lockfiles | ||
package-lock.json | ||
*.lock | ||
bower_components |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
# Changelog | ||
|
||
Notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
Breaking changes (😱!!!): | ||
|
||
New features: | ||
|
||
Bugfixes: | ||
|
||
Other improvements: | ||
|
||
## [v0.4.0](https://github.com/purescript-contrib/purescript-matryoshka/releases/tag/v0.4.0) - 2018-06-28 | ||
|
||
- Updates for [email protected] @xgrommx | ||
|
||
## [v0.3.0](https://github.com/purescript-contrib/purescript-matryoshka/releases/tag/v0.3.0) - 2017-04-11 | ||
|
||
- Updates for PureScript v0.11 | ||
|
||
## [v0.2.0](https://github.com/purescript-contrib/purescript-matryoshka/releases/tag/v0.2.0) - 2017-03-06 | ||
|
||
- Updated `purescript-fixed-points` dependency | ||
|
||
## [v0.1.1](https://github.com/purescript-contrib/purescript-matryoshka/releases/tag/v0.1.1) - 2017-01-03 | ||
|
||
- Relaxed `Comonad` constraint to `Functor` for `Corecursive Cofree` instance | ||
|
||
## [v0.1.0](https://github.com/purescript-contrib/purescript-matryoshka/releases/tag/v0.1.0) - 2016-12-30 | ||
|
||
- Initial release |
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,5 @@ | ||
# Contributing to Matryoshka | ||
|
||
Thanks for your interest in contributing to `matryoshka`! We welcome new contributions regardless of your level of experience or familiarity with PureScript. | ||
|
||
Every library in the Contributors organization shares a simple handbook that helps new contributors get started. With that in mind, please [read the short contributing guide on purescript-contrib/governance](https://github.com/purescript-contrib/governance/blob/main/contributing.md) before contributing to this library. |
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 |
---|---|---|
@@ -1,20 +1,44 @@ | ||
# purescript-matryoshka | ||
# Matryoshka | ||
|
||
[](https://github.com/slamdata/purescript-matryoshka/releases) | ||
[](https://travis-ci.org/slamdata/purescript-matryoshka) | ||
[](https://github.com/purescript-contrib/purescript-matryoshka/actions?query=workflow%3ACI+branch%3Amain) | ||
[](https://github.com/purescript-contrib/purescript-matryoshka/releases) | ||
[](https://pursuit.purescript.org/packages/purescript-matryoshka) | ||
[](https://github.com/garyb) | ||
[](https://github.com/thomashoneyman) | ||
|
||
Generalized folds, unfolds, and traversals for fixed point data structures in PureScript. (A port of [Matryoshka](https://github.com/slamdata/matryoshka)). | ||
Generalized folds, unfolds, and traversals for fixed point data structures in PureScript. (A port of [Matryoshka](https://github.com/precog/matryoshka)). | ||
|
||
## Installation | ||
|
||
Install `matryoshka` with [Spago](https://github.com/purescript/spago): | ||
|
||
```sh | ||
spago install matryoshka | ||
``` | ||
bower install purescript-matryoshka | ||
``` | ||
|
||
## Quick start | ||
|
||
The quick start hasn't been written yet (contributions are welcome!). The quick start covers a common, minimal use case for the library, whereas longer examples and tutorials are kept in the [docs directory](./docs). | ||
|
||
## Documentation | ||
|
||
Real documentation coming soon, for now refer to the [original Matryoshka docs](https://github.com/slamdata/matryoshka/blob/master/README.md) for an explanation of the general concepts! | ||
A port of the example used in these docs is available [here](https://github.com/slamdata/purescript-matryoshka/blob/master/test/Test/Example/Expr.purs). | ||
A simple example showing the use of `cata`, `ana` and `hylo` is [here](https://github.com/slamdata/purescript-matryoshka/blob/master/test/Test/Example/List.purs). | ||
`matryoshka` documentation is stored in a few places: | ||
|
||
1. Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-matryoshka). | ||
2. Written documentation is kept in the [docs directory](./docs). | ||
3. Usage examples can be found in [the test suite](./test). | ||
|
||
If you get stuck, there are several ways to get help: | ||
|
||
- [Open an issue](https://github.com/purescript-contrib/purescript-matryoshka/issues) if you have encountered a bug or problem. | ||
- [Search or start a thread on the PureScript Discourse](https://discourse.purescript.org) if you have general questions. You can also ask questions in the `#purescript` and `#purescript-beginners` channels on the [Functional Programming Slack](https://functionalprogramming.slack.com) ([invite link](https://fpchat-invite.herokuapp.com/)). | ||
|
||
## Contributing | ||
|
||
You can contribute to `matryoshka` in several ways: | ||
|
||
1. If you encounter a problem or have a question, please [open an issue](https://github.com/purescript-contrib/purescript-matryoshka/issues). We'll do our best to work with you to resolve or answer it. | ||
|
||
2. If you would like to contribute code, tests, or documentation, please [read the contributor guide](./CONTRIBUTING.md). It's a short, helpful introduction to contributing to this library, including development instructions. | ||
|
||
Module documentation is published on Pursuit: [http://pursuit.purescript.org/packages/purescript-matryoshka](http://pursuit.purescript.org/packages/purescript-matryoshka) | ||
3. If you have written a library, tutorial, guide, or other resource based on this package, please share it on the [PureScript Discourse](https://discourse.purescript.org)! Writing libraries and learning resources are a great way to help this library succeed. |
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,7 @@ | ||
# Matryoshka Documentation | ||
|
||
This directory contains documentation for `matryoshka`. If you are interested in contributing new documentation, please read the [contributor guidelines](../CONTRIBUTING.md) and [What Nobody Tells You About Documentation](https://documentation.divio.com) for help getting started. | ||
|
||
Real documentation coming soon, for now refer to the [original Matryoshka docs](https://github.com/precog/matryoshka/blob/main/README.md) for an explanation of the general concepts! | ||
A port of the example used in these docs is available [here](https://github.com/purescript-contrib/purescript-matryoshka/blob/main/test/Test/Example/Expr.purs). | ||
A simple example showing the use of `cata`, `ana` and `hylo` is [here](https://github.com/purescript-contrib/purescript-matryoshka/blob/main/test/Test/Example/List.purs). |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
let upstream = | ||
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200922/packages.dhall sha256:5edc9af74593eab8834d7e324e5868a3d258bbab75c5531d2eb770d4324a2900 | ||
|
||
in upstream |
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,14 @@ | ||
{ name = "matryoshka" | ||
, dependencies = | ||
[ "console" | ||
, "effect" | ||
, "fixed-points" | ||
, "free" | ||
, "prelude" | ||
, "profunctor" | ||
, "psci-support" | ||
, "transformers" | ||
] | ||
, packages = ./packages.dhall | ||
, sources = [ "src/**/*.purs", "test/**/*.purs" ] | ||
} |