aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/type/implicit.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/type/implicit.lux56
1 files changed, 28 insertions, 28 deletions
diff --git a/stdlib/source/library/lux/type/implicit.lux b/stdlib/source/library/lux/type/implicit.lux
index bd4ac94b0..25678f37a 100644
--- a/stdlib/source/library/lux/type/implicit.lux
+++ b/stdlib/source/library/lux/type/implicit.lux
@@ -1,35 +1,35 @@
(.using
- [library
- [lux "*"
- [abstract
- ["[0]" monad {"+" do}]
- ["[0]" equivalence]]
- [control
- ["[0]" maybe]
- ["[0]" try]
- ["<>" parser
- ["<[0]>" code {"+" Parser}]]]
- [data
- ["[0]" product]
- ["[0]" text ("[1]#[0]" equivalence)
- ["%" format {"+" format}]]
- [collection
- ["[0]" list ("[1]#[0]" monad mix)]
- ["[0]" dictionary {"+" Dictionary}]]]
- ["[0]" macro
- ["[0]" code]
- [syntax {"+" syntax:}]]
- [math
- ["[0]" number
- ["n" nat]]]
- ["[0]" meta]
- ["[0]" type ("[1]#[0]" equivalence)
- ["[0]" check {"+" Check}]]]])
+ [library
+ [lux "*"
+ [abstract
+ ["[0]" monad {"+" do}]
+ ["[0]" equivalence]]
+ [control
+ ["[0]" maybe]
+ ["[0]" try]
+ ["<>" parser
+ ["<[0]>" code {"+" Parser}]]]
+ [data
+ ["[0]" product]
+ ["[0]" text ("[1]#[0]" equivalence)
+ ["%" format {"+" format}]]
+ [collection
+ ["[0]" list ("[1]#[0]" monad mix)]
+ ["[0]" dictionary {"+" Dictionary}]]]
+ ["[0]" macro
+ ["[0]" code]
+ [syntax {"+" syntax:}]]
+ [math
+ ["[0]" number
+ ["n" nat]]]
+ ["[0]" meta]
+ ["[0]" type ("[1]#[0]" equivalence)
+ ["[0]" check {"+" Check}]]]])
(def: (type_var id env)
(-> Nat Type_Context (Meta Type))
(case (list.example (|>> product.left (n.= id))
- (value@ .#var_bindings env))
+ (the .#var_bindings env))
{.#Some [_ {.#Some type}]}
(case type
{.#Var id'}
@@ -52,7 +52,7 @@
compiler meta.compiler_state]
(case raw_type
{.#Var id}
- (type_var id (value@ .#type_context compiler))
+ (type_var id (the .#type_context compiler))
_
(in raw_type))))