This is a library providing something like Data.Either for ATS.
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!