aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/platform/compiler/default/init.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/platform/compiler/default/init.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/lux/platform/compiler/default/init.lux b/stdlib/source/lux/platform/compiler/default/init.lux
index 012ab3ea9..b71596150 100644
--- a/stdlib/source/lux/platform/compiler/default/init.lux
+++ b/stdlib/source/lux/platform/compiler/default/init.lux
@@ -6,7 +6,7 @@
[data
["." product]
["." error (#+ Error)]
- ["." text ("text/." Hash<Text>)]
+ ["." text ("text/." hash)]
[collection
["." dictionary]]]
["." macro]
@@ -54,7 +54,7 @@
(def: refresh
(All [anchor expression statement]
(statement.Operation anchor expression statement Any))
- (do phase.Monad<Operation>
+ (do phase.monad
[[bundle state] phase.get-state
#let [eval (evaluation.evaluator (get@ [#statement.synthesis #statement.state] state)
(get@ [#statement.translation #statement.state] state)
@@ -114,7 +114,7 @@
(def: (begin hash input)
(-> Nat ///.Input <Operation>)
(statement.lift-analysis
- (do phase.Monad<Operation>
+ (do phase.monad
[#let [module (get@ #///.module input)]
_ (module.create hash module)
_ (analysis.set-current-module module)]
@@ -127,7 +127,7 @@
(def: (iteration reader)
(-> Reader <Operation>)
- (do phase.Monad<Operation>
+ (do phase.monad
[code (statement.lift-analysis
(..read reader))
_ (totalS.phase code)]
@@ -135,7 +135,7 @@
(def: (loop module)
(-> Module <Operation>)
- (do phase.Monad<Operation>
+ (do phase.monad
[reader (statement.lift-analysis
(..reader module syntax.no-aliases))]
(function (_ state)
@@ -151,7 +151,7 @@
(def: (compile hash input)
(-> Nat ///.Input <Operation>)
- (do phase.Monad<Operation>
+ (do phase.monad
[#let [module (get@ #///.module input)]
_ (..begin hash input)
_ (..loop module)]
@@ -174,11 +174,11 @@
dependencies (default-dependencies prelude input)]
{#///.dependencies dependencies
#///.process (function (_ archive)
- (do error.Monad<Error>
+ (do error.monad
[[state' analysis-module] (phase.run' state
(: (All [anchor expression statement]
(statement.Operation anchor expression statement .Module))
- (do phase.Monad<Operation>
+ (do phase.monad
[_ (compile hash input)]
(statement.lift-analysis
(extension.lift
@@ -189,7 +189,7 @@
#descriptor.references dependencies
#descriptor.state #.Compiled}]]
(wrap (#.Right [(document.write key descriptor analysis-module)
- (dictionary.new text.Hash<Text>)]))))})))
+ (dictionary.new text.hash)]))))})))
(def: #export key
(Key .Module)