aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/tool/compiler/phase.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/tool/compiler/phase.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/tool/compiler/phase.lux b/stdlib/source/library/lux/tool/compiler/phase.lux
index f7e3ddf03..522b564ab 100644
--- a/stdlib/source/library/lux/tool/compiler/phase.lux
+++ b/stdlib/source/library/lux/tool/compiler/phase.lux
@@ -68,13 +68,13 @@
[[state' output] (operation (get state))]
(wrap [(set state' state) output]))))
-(def: #export fail
+(def: #export failure
(-> Text Operation)
(|>> #try.Failure (state.lift try.monad)))
(def: #export (throw exception parameters)
(All [e] (-> (Exception e) e Operation))
- (..fail (ex.construct exception parameters)))
+ (..failure (ex.construct exception parameters)))
(def: #export (lift error)
(All [s a] (-> (Try a) (Operation s a)))