aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/try.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/control/try.lux')
-rw-r--r--stdlib/source/library/lux/control/try.lux15
1 files changed, 8 insertions, 7 deletions
diff --git a/stdlib/source/library/lux/control/try.lux b/stdlib/source/library/lux/control/try.lux
index b18a38dd8..eb078497f 100644
--- a/stdlib/source/library/lux/control/try.lux
+++ b/stdlib/source/library/lux/control/try.lux
@@ -64,7 +64,8 @@
(All (_ !) (-> (Monad !) (Monad (All (_ a) (! (Try a))))))
(def: &functor
- (functor.composite (value@ #monad.&functor monad) ..functor))
+ (functor.composite (value@ monad.&functor monad)
+ ..functor))
(def: in
(|>> (\ ..monad in)
@@ -114,19 +115,19 @@
(-> (Try a) (Maybe a)))
(case try
{#Success value}
- {#.Some value}
+ {.#Some value}
{#Failure message}
- #.None))
+ {.#None}))
(def: .public (of_maybe maybe)
(All (_ a)
(-> (Maybe a) (Try a)))
(case maybe
- {#.Some value}
+ {.#Some value}
{#Success value}
- #.None
+ {.#None}
{#Failure (`` (("lux in-module" (~~ (static .prelude_module)) .name\encoded)
(name_of ..of_maybe)))}))
@@ -134,10 +135,10 @@
(case tokens
(^ (list else try))
{#Success [compiler (list (` (case (~ try)
- {#..Success (~' g!temp)}
+ {..#Success (~' g!temp)}
(~' g!temp)
- {#..Failure (~ [location.dummy {#.Identifier ["" ""]}])}
+ {..#Failure (~ [location.dummy {.#Identifier ["" ""]}])}
(~ else))))]}
_