aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/action.lux
blob: 3f3939216a11ba15088ddfbcbfc1157a2ca10da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   [abstract
    [monad (.only Monad)]]
   [control
    ["[0]" try (.only Try)]
    [concurrency
     ["[0]" async (.only Async)]]]]])

(type .public (Action a)
  (Async (Try a)))

(def .public monad
  (Monad Action)
  (as_expected (try.with async.monad)))