aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/action.lux
blob: 61c5ba3de21caceb39ef40ddfb95323922a422d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(.module:
  [library
   [lux #*
    [abstract
     [monad (#+ Monad)]]
    [control
     ["." try (#+ Try)]
     [concurrency
      ["." promise (#+ Promise)]]]]])

(type: #export (Action a)
  (Promise (Try a)))

(def: #export monad
  (Monad Action)
  (:assume (try.with promise.monad)))