https://github.com/vmchale/either
Port of Data.Either for ATS
https://github.com/vmchale/either
Last synced: 11 months ago
JSON representation
Port of Data.Either for ATS
- Host: GitHub
- URL: https://github.com/vmchale/either
- Owner: vmchale
- License: bsd-3-clause
- Created: 2018-02-11T10:58:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T14:44:24.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T12:08:10.994Z (about 1 year ago)
- Language: ATS
- Size: 30.3 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# either
[](https://travis-ci.org/vmchale/either)
This is a library providing something like
[Data.Either](https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-Either.html)
for ATS.
## Use
With [atspkg](https://github.com/vmchale/atspkg), you can simply add
a `dependencies` field to your `atspkg.dhall` like so:
```
let pkg = https://raw.githubusercontent.com/vmchale/atspkg/master/pkgs/default.dhall
in
let dbin = https://raw.githubusercontent.com/vmchale/atspkg/master/pkgs/default-bin.dhall
in pkg //
{ bin =
[ dbin //
{ src = "src/ats-wc.dats"
, target = "target/ats-wc"
, gcBin = True
}
]
, dependencies = [ "either" ]
}
```
As `either` is a high-level library, you should be sure to use garbage
collection!