Commit Graph

6 Commits

Author SHA1 Message Date
runarorama
e51d959616 Merge branch 'trunk' of github.com:unisonweb/unison into topic/codebaseserver-openapi 2021-02-25 22:05:00 -05:00
Stew O'Connor
7a2a8fb28b refactoring new-runtime-transcripts
This adds a _base transcript which will be run as a prelude before the
other transcripts (not sure how yet). The goal is to cut down on the
boilerplate which has been creeping into the tests.

We also rename a few more of the builtin IO functions which return
Either Failure a
2021-02-23 23:56:04 -08:00
runarorama
8c47f13392 Update transcript output 2021-02-08 15:02:10 -05:00
Stew O'Connor
4b7f49a688 Make IO functions that throw exceptions
closes: 1796

This adds two new abilities into IOSource.hs

    ability Throw e where
      throw: e -> x

    ability Exception where
      raise Failure -> x

All of the builtin functions which return an `Either Failure a` have
been renamed from `foo` to `foo.impl`, and for each of these functions
we implement a new function named `foo` in `IOSource.hs` which wraps
the `.impl` and `raises` a Failure using tyhe above `Exception`
ability.

Since we already have a Exception in `.base`, which should likely
coordinate this PR with one to the base repo which removes `Exception`
and `Either.toExcetpion`
2021-02-01 14:10:22 -08:00
Dan Doel
22cce8b61f Use TVar.swap in transcript 2021-01-14 14:17:34 -05:00
Dan Doel
2a2490c4d0 Add an stm test transcript 2021-01-13 14:35:19 -05:00