aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/macro/context.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/meta/macro/context.lux')
-rw-r--r--stdlib/source/library/lux/meta/macro/context.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/meta/macro/context.lux b/stdlib/source/library/lux/meta/macro/context.lux
index 73cda9cd0..5a347775d 100644
--- a/stdlib/source/library/lux/meta/macro/context.lux
+++ b/stdlib/source/library/lux/meta/macro/context.lux
@@ -33,7 +33,7 @@
(do meta.monad
[.let [[@ expected_name] it]
defs (meta.definitions @)]
- (case (list.one (function (_ [actual_name [exported? type value]])
+ (when (list.one (function (_ [actual_name [exported? type value]])
(if (text#= expected_name actual_name)
{.#Some value}
{.#None}))
@@ -50,7 +50,7 @@
(All (_ a) (-> (Stack a) Symbol (Meta a)))
(do meta.monad
[stack (..global context)]
- (case (|> stack
+ (when (|> stack
(as (Stack Any))
list.head)
{.#Some top}
@@ -69,7 +69,7 @@
(All (_ a) (-> (Stack a) (Predicate a) Symbol (Meta a)))
(do meta.monad
[stack (..global context)]
- (case (|> stack
+ (when (|> stack
(as (Stack Any))
(list.example (as (Predicate Any) ?)))
{.#Some it}
@@ -88,7 +88,7 @@
(function (_ lux)
(let [on_global (is (-> Global Global)
(function (_ it)
- (case it
+ (when it
{.#Definition it}
{.#Definition (on_definition it)}