/either

Port of Data.Either for ATS

Primary LanguageATSBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

either

Build Status

This is a library providing something like Data.Either for ATS.

Use

With 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!