Skip to content

Commit

Permalink
Merge pull request #2 from jmagaram/version-2.0.0
Browse files Browse the repository at this point in the history
remove lazy sequences
  • Loading branch information
jmagaram authored May 5, 2023
2 parents 59654c2 + 7511e2c commit 34aa812
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 4,464 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Version 2.1.0

Move lazy sequences to a separate repository.
https://github.com/jmagaram/rescript-seq

## Version 2.0.0

- Fixed
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Utilities for [ReScript](https://rescript-lang.org). Includes:

- [Lazy Sequences](SEQ_README.md) with the `Seq` module. Follow the link for an overview, functions, and samples.
- A lazy-promise `Task` and `TaskResult`
- [Lazy sequences](https://github.com/jmagaram/rescript-seq) are now in a separate repository.
- `Task` and `TaskResult`
- Untagged `Union` and `Literal` to construct and pattern match on discriminated unions of any kind
- Useful extensions to `Option`, `Result`, and `Array`
- `NonEmptyArray`
Expand All @@ -27,10 +27,6 @@ Add to your `bsconfig.json`...
}
```

## Lazy sequences (Seq module)

See [Seq README](SEQ_README.md). This really should be its own package.

## Task and TaskResult

Inspired by [TaskEither in fp-ts](https://gcanti.github.io/fp-ts/modules/TaskEither.ts.html), a `Task` is a lazy promise that never fails. The `Task.Result` works with lazy promises that always return an `Error` or an `Ok`. Just like a regular `result`, you can transform it before execution with **`map`**, **`mapError`**, **`flatMap`**, and **`toOption`**. When ready to execute, call **`toPromise`**.
Expand Down
25 changes: 0 additions & 25 deletions SEQ_CONTRIBUTING.md

This file was deleted.

174 changes: 0 additions & 174 deletions SEQ_NOTES.md

This file was deleted.

142 changes: 0 additions & 142 deletions SEQ_README.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jmagaram/rescript-extras",
"version": "2.0.0",
"version": "2.1.0",
"module": "",
"description": "Useful general-purpose utility functions and modules for ReScript projects.",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion src/Extras.res
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ module Literal = Extras__Literal
module Union = Extras__Union
module Pattern = Extras__Pattern
module Functions = Extras__Trampoline
module Seq = Extras__Seq
module Trampoline = Extras__Trampoline
Loading

0 comments on commit 34aa812

Please sign in to comment.