From 518a7467c4e0ef904afa8c59cff3594d6f63c552 Mon Sep 17 00:00:00 2001
From: Eduardo Julian
Date: Fri, 20 Jul 2018 22:46:38 -0400
Subject: No longer giving default aliases to un-prefixed imports.
---
stdlib/source/lux.lux | 36 +-
stdlib/source/lux/cli.lux | 9 +-
stdlib/source/lux/concurrency/actor.lux | 20 +-
stdlib/source/lux/concurrency/atom.lux | 2 +-
stdlib/source/lux/concurrency/frp.lux | 15 +-
stdlib/source/lux/concurrency/promise.lux | 15 +-
stdlib/source/lux/concurrency/semaphore.lux | 8 +-
stdlib/source/lux/concurrency/stm.lux | 20 +-
stdlib/source/lux/control/apply.lux | 2 +-
stdlib/source/lux/control/comonad.lux | 2 +-
stdlib/source/lux/control/concatenative.lux | 55 +--
stdlib/source/lux/control/contract.lux | 8 +-
stdlib/source/lux/control/exception.lux | 11 +-
stdlib/source/lux/control/monad.lux | 3 +-
stdlib/source/lux/control/monad/indexed.lux | 2 +-
stdlib/source/lux/control/parser.lux | 9 +-
stdlib/source/lux/control/pipe.lux | 6 +-
stdlib/source/lux/control/predicate.lux | 5 +-
stdlib/source/lux/control/reader.lux | 2 +-
stdlib/source/lux/control/region.lux | 8 +-
stdlib/source/lux/control/writer.lux | 2 +-
stdlib/source/lux/data/collection/array.lux | 6 +-
stdlib/source/lux/data/collection/bits.lux | 7 +-
stdlib/source/lux/data/collection/dictionary.lux | 10 +-
.../lux/data/collection/dictionary/ordered.lux | 7 +-
stdlib/source/lux/data/collection/list.lux | 10 +-
stdlib/source/lux/data/collection/queue.lux | 4 +-
.../source/lux/data/collection/queue/priority.lux | 8 +-
stdlib/source/lux/data/collection/row.lux | 13 +-
stdlib/source/lux/data/collection/sequence.lux | 7 +-
stdlib/source/lux/data/collection/set.lux | 7 +-
stdlib/source/lux/data/collection/set/multi.lux | 17 +-
stdlib/source/lux/data/collection/set/ordered.lux | 5 +-
stdlib/source/lux/data/collection/stack.lux | 2 +-
stdlib/source/lux/data/collection/tree/finger.lux | 4 +-
stdlib/source/lux/data/collection/tree/rose.lux | 6 +-
.../lux/data/collection/tree/rose/parser.lux | 2 +-
.../lux/data/collection/tree/rose/zipper.lux | 54 +--
stdlib/source/lux/data/color.lux | 9 +-
stdlib/source/lux/data/format/binary.lux | 13 +-
stdlib/source/lux/data/format/css.lux | 7 +-
stdlib/source/lux/data/format/json.lux | 24 +-
stdlib/source/lux/data/format/xml.lux | 12 +-
stdlib/source/lux/data/ident.lux | 6 +-
stdlib/source/lux/data/lazy.lux | 8 +-
stdlib/source/lux/data/maybe.lux | 16 +-
stdlib/source/lux/data/number.lux | 10 +-
stdlib/source/lux/data/number/complex.lux | 11 +-
stdlib/source/lux/data/number/ratio.lux | 18 +-
stdlib/source/lux/data/store.lux | 3 +-
stdlib/source/lux/data/text.lux | 12 +-
stdlib/source/lux/data/text/buffer.lux | 10 +-
stdlib/source/lux/data/text/encoding.lux | 9 +-
stdlib/source/lux/data/text/format.lux | 30 +-
stdlib/source/lux/data/text/lexer.lux | 12 +-
stdlib/source/lux/data/text/regex.lux | 15 +-
stdlib/source/lux/data/text/unicode.lux | 12 +-
stdlib/source/lux/data/trace.lux | 2 +-
stdlib/source/lux/host.jvm.lux | 45 +--
stdlib/source/lux/language/compiler.lux | 9 +-
stdlib/source/lux/language/compiler/analysis.lux | 13 +-
.../source/lux/language/compiler/analysis/case.lux | 23 +-
.../language/compiler/analysis/case/coverage.lux | 25 +-
.../lux/language/compiler/analysis/expression.lux | 23 +-
.../lux/language/compiler/analysis/function.lux | 16 +-
.../lux/language/compiler/analysis/inference.lux | 13 +-
.../lux/language/compiler/analysis/module.lux | 106 +++---
.../lux/language/compiler/analysis/primitive.lux | 6 +-
.../lux/language/compiler/analysis/reference.lux | 13 +-
.../lux/language/compiler/analysis/scope.lux | 19 +-
.../lux/language/compiler/analysis/structure.lux | 26 +-
.../source/lux/language/compiler/analysis/type.lux | 11 +-
.../source/lux/language/compiler/default/cache.lux | 26 +-
.../lux/language/compiler/default/repl/type.lux | 14 +-
stdlib/source/lux/language/compiler/extension.lux | 11 +-
.../lux/language/compiler/extension/analysis.lux | 6 +-
.../compiler/extension/analysis/common.lux | 51 +--
.../compiler/extension/analysis/host.jvm.lux | 24 +-
.../lux/language/compiler/extension/bundle.lux | 10 +-
stdlib/source/lux/language/compiler/init.lux | 22 +-
.../source/lux/language/compiler/meta/archive.lux | 22 +-
stdlib/source/lux/language/compiler/meta/cache.lux | 28 +-
.../language/compiler/meta/cache/dependency.lux | 2 +-
.../lux/language/compiler/meta/io/archive.lux | 8 +-
.../lux/language/compiler/meta/io/context.lux | 29 +-
stdlib/source/lux/language/compiler/synthesis.lux | 9 +-
.../lux/language/compiler/synthesis/case.lux | 15 +-
.../lux/language/compiler/synthesis/expression.lux | 18 +-
.../lux/language/compiler/synthesis/function.lux | 20 +-
.../lux/language/compiler/synthesis/loop.lux | 19 +-
.../source/lux/language/compiler/translation.lux | 18 +-
.../compiler/translation/scheme/case.jvm.lux | 52 +--
.../compiler/translation/scheme/expression.jvm.lux | 19 +-
.../compiler/translation/scheme/extension.jvm.lux | 43 +--
.../translation/scheme/extension/common.jvm.lux | 394 ++++++++++-----------
.../translation/scheme/extension/host.jvm.lux | 11 +
.../compiler/translation/scheme/function.jvm.lux | 50 +--
.../compiler/translation/scheme/loop.jvm.lux | 29 +-
.../compiler/translation/scheme/primitive.jvm.lux | 5 +-
.../compiler/translation/scheme/reference.jvm.lux | 16 +-
.../compiler/translation/scheme/runtime.jvm.lux | 23 +-
.../compiler/translation/scheme/structure.jvm.lux | 26 +-
stdlib/source/lux/language/host/scheme.lux | 7 +-
stdlib/source/lux/language/name.lux | 2 +-
stdlib/source/lux/language/syntax.lux | 8 +-
stdlib/source/lux/language/type.lux | 12 +-
stdlib/source/lux/language/type/check.lux | 17 +-
stdlib/source/lux/macro.lux | 16 +-
stdlib/source/lux/macro/code.lux | 8 +-
stdlib/source/lux/macro/poly.lux | 30 +-
stdlib/source/lux/macro/poly/equivalence.lux | 36 +-
stdlib/source/lux/macro/poly/functor.lux | 17 +-
stdlib/source/lux/macro/poly/json.lux | 27 +-
stdlib/source/lux/macro/syntax.lux | 29 +-
stdlib/source/lux/macro/syntax/common/reader.lux | 17 +-
stdlib/source/lux/macro/syntax/common/writer.lux | 10 +-
stdlib/source/lux/math.lux | 9 +-
stdlib/source/lux/math/logic/fuzzy.lux | 7 +-
stdlib/source/lux/math/modular.lux | 10 +-
stdlib/source/lux/math/random.lux | 40 ++-
stdlib/source/lux/test.lux | 27 +-
stdlib/source/lux/time/date.lux | 7 +-
stdlib/source/lux/time/duration.lux | 2 +-
stdlib/source/lux/time/instant.lux | 19 +-
stdlib/source/lux/type/abstract.lux | 12 +-
stdlib/source/lux/type/implicit.lux | 99 +++---
stdlib/source/lux/type/object/interface.lux | 17 +-
stdlib/source/lux/type/object/protocol.lux | 11 +-
stdlib/source/lux/type/quotient.lux | 11 +-
stdlib/source/lux/type/refinement.lux | 11 +-
stdlib/source/lux/type/resource.lux | 24 +-
stdlib/source/lux/type/unit.lux | 2 +-
stdlib/source/lux/world/blob.jvm.lux | 12 +-
stdlib/source/lux/world/console.lux | 28 +-
stdlib/source/lux/world/environment.jvm.lux | 22 +-
stdlib/source/lux/world/file.lux | 21 +-
stdlib/source/lux/world/net/tcp.jvm.lux | 31 +-
stdlib/source/lux/world/net/udp.jvm.lux | 27 +-
stdlib/test/test/lux.lux | 8 +-
stdlib/test/test/lux/cli.lux | 11 +-
stdlib/test/test/lux/concurrency/actor.lux | 3 +-
stdlib/test/test/lux/concurrency/atom.lux | 6 +-
stdlib/test/test/lux/concurrency/frp.lux | 16 +-
stdlib/test/test/lux/concurrency/promise.lux | 12 +-
stdlib/test/test/lux/concurrency/semaphore.lux | 15 +-
stdlib/test/test/lux/concurrency/stm.lux | 14 +-
stdlib/test/test/lux/control/continuation.lux | 5 +-
stdlib/test/test/lux/control/exception.lux | 4 +-
stdlib/test/test/lux/control/interval.lux | 5 +-
stdlib/test/test/lux/control/parser.lux | 5 +-
stdlib/test/test/lux/control/pipe.lux | 3 -
stdlib/test/test/lux/control/reader.lux | 2 +-
stdlib/test/test/lux/control/region.lux | 9 +-
stdlib/test/test/lux/control/state.lux | 4 +-
stdlib/test/test/lux/control/writer.lux | 7 +-
stdlib/test/test/lux/data/bit.lux | 1 -
stdlib/test/test/lux/data/collection/array.lux | 7 +-
stdlib/test/test/lux/data/collection/bits.lux | 7 +-
.../test/test/lux/data/collection/dictionary.lux | 12 +-
.../lux/data/collection/dictionary/ordered.lux | 11 +-
stdlib/test/test/lux/data/collection/list.lux | 11 +-
stdlib/test/test/lux/data/collection/queue.lux | 3 +-
.../test/lux/data/collection/queue/priority.lux | 11 +-
stdlib/test/test/lux/data/collection/row.lux | 5 +-
stdlib/test/test/lux/data/collection/sequence.lux | 11 +-
stdlib/test/test/lux/data/collection/set.lux | 8 +-
.../test/test/lux/data/collection/set/ordered.lux | 5 +-
stdlib/test/test/lux/data/collection/stack.lux | 5 +-
stdlib/test/test/lux/data/collection/tree/rose.lux | 10 +-
.../test/lux/data/collection/tree/rose/zipper.lux | 11 +-
stdlib/test/test/lux/data/color.lux | 1 -
stdlib/test/test/lux/data/error.lux | 8 +-
stdlib/test/test/lux/data/format/json.lux | 19 +-
stdlib/test/test/lux/data/format/xml.lux | 9 +-
stdlib/test/test/lux/data/ident.lux | 6 +-
stdlib/test/test/lux/data/identity.lux | 1 -
stdlib/test/test/lux/data/lazy.lux | 1 -
stdlib/test/test/lux/data/maybe.lux | 55 ++-
stdlib/test/test/lux/data/number.lux | 1 -
stdlib/test/test/lux/data/number/complex.lux | 8 +-
stdlib/test/test/lux/data/number/i64.lux | 1 -
stdlib/test/test/lux/data/number/ratio.lux | 4 +-
stdlib/test/test/lux/data/sum.lux | 4 +-
stdlib/test/test/lux/data/text.lux | 4 +-
stdlib/test/test/lux/data/text/format.lux | 4 +-
stdlib/test/test/lux/data/text/lexer.lux | 7 +-
stdlib/test/test/lux/data/text/regex.lux | 17 +-
stdlib/test/test/lux/host.jvm.lux | 21 +-
.../test/lux/language/compiler/analysis/case.lux | 19 +-
.../lux/language/compiler/analysis/function.lux | 19 +-
.../lux/language/compiler/analysis/primitive.lux | 14 +-
.../compiler/analysis/procedure/common.lux | 14 +-
.../lux/language/compiler/analysis/reference.lux | 13 +-
.../lux/language/compiler/analysis/structure.lux | 22 +-
.../test/lux/language/compiler/synthesis/case.lux | 12 +-
.../lux/language/compiler/synthesis/function.lux | 29 +-
.../lux/language/compiler/synthesis/primitive.lux | 9 +-
.../lux/language/compiler/synthesis/structure.lux | 15 +-
stdlib/test/test/lux/language/syntax.lux | 9 +-
stdlib/test/test/lux/language/type.lux | 5 +-
stdlib/test/test/lux/language/type/check.lux | 18 +-
stdlib/test/test/lux/macro/poly/equivalence.lux | 12 +-
stdlib/test/test/lux/macro/poly/functor.lux | 8 +-
stdlib/test/test/lux/macro/syntax.lux | 11 +-
stdlib/test/test/lux/math.lux | 1 -
stdlib/test/test/lux/math/logic/continuous.lux | 1 -
stdlib/test/test/lux/math/logic/fuzzy.lux | 7 +-
stdlib/test/test/lux/math/modular.lux | 5 +-
stdlib/test/test/lux/math/random.lux | 19 +-
stdlib/test/test/lux/time/date.lux | 16 +-
stdlib/test/test/lux/type/object/interface.lux | 2 +-
stdlib/test/test/lux/type/resource.lux | 5 +-
stdlib/test/test/lux/world/blob.lux | 9 +-
stdlib/test/test/lux/world/net/tcp.lux | 4 +-
stdlib/test/test/lux/world/net/udp.lux | 9 +-
stdlib/test/tests.lux | 132 +++----
216 files changed, 1802 insertions(+), 1756 deletions(-)
create mode 100644 stdlib/source/lux/language/compiler/translation/scheme/extension/host.jvm.lux
(limited to 'stdlib')
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux
index 226545576..392d3a504 100644
--- a/stdlib/source/lux.lux
+++ b/stdlib/source/lux.lux
@@ -4220,15 +4220,7 @@
#import-refer {#refer-defs #All
#refer-open (list)}})))
- (^ [_ (#Tuple (list [_ (#Symbol ["" m-name])]))])
- (do Monad
- [import-name (clean-module nested? relative-root m-name)]
- (wrap (list {#import-name import-name
- #import-alias (#Some m-name)
- #import-refer {#refer-defs #Nothing
- #refer-open (list)}})))
-
- (^ [_ (#Tuple (list& [_ (#Text alias)] [_ (#Symbol ["" m-name])] extra))])
+ (^ [_ (#Tuple (list& [_ (#Symbol ["" m-name])] extra))])
(do Monad
[import-name (clean-module nested? relative-root m-name)
referral+extra (parse-referrals extra)
@@ -4236,13 +4228,15 @@
openings+extra (parse-openings extra)
#let [[openings extra] openings+extra]
sub-imports (parse-imports #1 import-name extra)]
- (wrap (list& {#import-name import-name
- #import-alias (#Some (replace-all "." m-name alias))
- #import-refer {#refer-defs referral
- #refer-open openings}}
- sub-imports)))
+ (wrap (case [referral openings]
+ [#Nothing #Nil] sub-imports
+ _ (list& {#import-name import-name
+ #import-alias #None
+ #import-refer {#refer-defs referral
+ #refer-open openings}}
+ sub-imports))))
- (^ [_ (#Tuple (list& [_ (#Symbol ["" m-name])] extra))])
+ (^ [_ (#Tuple (list& [_ (#Text alias)] [_ (#Symbol ["" m-name])] extra))])
(do Monad
[import-name (clean-module nested? relative-root m-name)
referral+extra (parse-referrals extra)
@@ -4250,13 +4244,11 @@
openings+extra (parse-openings extra)
#let [[openings extra] openings+extra]
sub-imports (parse-imports #1 import-name extra)]
- (wrap (case [referral openings]
- [#Nothing #Nil] sub-imports
- _ (list& {#import-name import-name
- #import-alias (#Some m-name)
- #import-refer {#refer-defs referral
- #refer-open openings}}
- sub-imports))))
+ (wrap (list& {#import-name import-name
+ #import-alias (#Some (replace-all "." m-name alias))
+ #import-refer {#refer-defs referral
+ #refer-open openings}}
+ sub-imports)))
_
(do Monad
diff --git a/stdlib/source/lux/cli.lux b/stdlib/source/lux/cli.lux
index 5b4b9b6bc..10b225077 100644
--- a/stdlib/source/lux/cli.lux
+++ b/stdlib/source/lux/cli.lux
@@ -4,13 +4,14 @@
monad
["p" parser]]
[data
- [collection [list ("list/" Monoid Monad)]]
- [text ("text/" Equivalence)
+ [collection
+ [list ("list/" Monoid Monad)]]
+ ["." text ("text/" Equivalence)
format]
["E" error]]
- [io]
+ ["." io]
[macro (#+ with-gensyms)
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]])
## [Types]
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux
index cb35b0706..971bbe01e 100644
--- a/stdlib/source/lux/concurrency/actor.lux
+++ b/stdlib/source/lux/concurrency/actor.lux
@@ -3,14 +3,16 @@
[control monad
["p" parser]
["ex" exception (#+ exception:)]]
- [io (#- run) ("io/" Monad)]
+ ["." io (#- run) ("io/" Monad)]
[data
- [product]
+ ["." product]
["e" error]
- text/format
- [collection [list ("list/" Monoid Monad Fold)]]]
- [macro (#+ with-gensyms Monad)
- [code]
+ [text
+ format]
+ [collection
+ ["." list ("list/" Monoid Monad Fold)]]]
+ ["." macro (#+ with-gensyms Monad)
+ ["." code]
["s" syntax (#+ syntax: Syntax)]
[syntax
["cs" common]
@@ -20,9 +22,9 @@
[type
abstract]]
[//
- [atom (#+ Atom atom)]
- [promise (#+ Promise promise) ("promise/" Monad)]
- [task (#+ Task)]])
+ ["." atom (#+ Atom atom)]
+ ["." promise (#+ Promise promise) ("promise/" Monad)]
+ ["." task (#+ Task)]])
(exception: #export poisoned)
diff --git a/stdlib/source/lux/concurrency/atom.lux b/stdlib/source/lux/concurrency/atom.lux
index a06a93b4e..f81eafc22 100644
--- a/stdlib/source/lux/concurrency/atom.lux
+++ b/stdlib/source/lux/concurrency/atom.lux
@@ -1,6 +1,6 @@
(.module:
[lux #*
- [function]
+ ["." function]
[io (#- run)]])
(type: #export (Atom a)
diff --git a/stdlib/source/lux/concurrency/frp.lux b/stdlib/source/lux/concurrency/frp.lux
index 2e1e10d87..0e777ce7a 100644
--- a/stdlib/source/lux/concurrency/frp.lux
+++ b/stdlib/source/lux/concurrency/frp.lux
@@ -3,13 +3,16 @@
[control
[functor (#+ Functor)]
[apply (#+ Apply)]
- [monad (#+ do Monad)]]
- [io (#+ IO io)]
- [data [collection [list ("list/" Monoid)]]]
- [type abstract]]
+ ["." monad (#+ do Monad)]]
+ ["." io (#+ IO io)]
+ [data
+ [collection
+ [list ("list/" Monoid)]]]
+ [type
+ abstract]]
[//
- [atom (#+ Atom atom)]
- [promise (#+ Promise)]])
+ ["." atom (#+ Atom atom)]
+ ["." promise (#+ Promise)]])
## [Types]
(abstract: #export (Channel a)
diff --git a/stdlib/source/lux/concurrency/promise.lux b/stdlib/source/lux/concurrency/promise.lux
index eaf913ac1..c68b1fc17 100644
--- a/stdlib/source/lux/concurrency/promise.lux
+++ b/stdlib/source/lux/concurrency/promise.lux
@@ -1,14 +1,17 @@
(.module:
[lux #*
- [io (#+ IO io)]
- [function]
[control
[functor (#+ Functor)]
[apply (#+ Apply)]
- [monad (#+ do Monad)]]
- [data [product]]
- [concurrency [atom (#+ Atom atom)]]
- [type abstract]])
+ ["." monad (#+ do Monad)]]
+ [data
+ ["." product]]
+ ["." function]
+ [type
+ abstract]
+ ["." io (#+ IO io)]
+ [concurrency
+ ["." atom (#+ Atom atom)]]])
(def: #export parallelism
Nat
diff --git a/stdlib/source/lux/concurrency/semaphore.lux b/stdlib/source/lux/concurrency/semaphore.lux
index b6c0ce69b..3be7fb431 100644
--- a/stdlib/source/lux/concurrency/semaphore.lux
+++ b/stdlib/source/lux/concurrency/semaphore.lux
@@ -2,12 +2,12 @@
[lux #*
[control [monad (#+ do)]]
[concurrency
- [atom (#+ Atom)]
- [promise (#+ Promise)]]
- [io (#+ IO)]
+ ["." atom (#+ Atom)]
+ ["." promise (#+ Promise)]]
+ ["." io (#+ IO)]
[type
abstract
- [refinement]]])
+ ["." refinement]]])
(type: State
{#open-positions Nat
diff --git a/stdlib/source/lux/concurrency/stm.lux b/stdlib/source/lux/concurrency/stm.lux
index 88d0ed6ed..b19188a86 100644
--- a/stdlib/source/lux/concurrency/stm.lux
+++ b/stdlib/source/lux/concurrency/stm.lux
@@ -3,17 +3,19 @@
[control
[functor (#+ Functor)]
[apply (#+ Apply)]
- [monad (#+ do Monad)]]
- [io (#+ IO io)]
+ ["." monad (#+ do Monad)]]
+ ["." io (#+ IO io)]
[data
- [product]
- [maybe]
- [collection [list ("list/" Functor Fold)]]]
+ ["." product]
+ ["." maybe]
+ [collection
+ ["." list ("list/" Functor Fold)]]]
[concurrency
- [atom (#+ Atom atom)]
- [promise (#+ Promise promise)]
- [frp ("frp/" Functor)]]
- [type abstract]])
+ ["." atom (#+ Atom atom)]
+ ["." promise (#+ Promise promise)]
+ ["." frp ("frp/" Functor)]]
+ [type
+ abstract]])
(abstract: #export (Var a)
{#.doc "A mutable cell containing a value, and observers that will be alerted of any change to it."}
diff --git a/stdlib/source/lux/control/apply.lux b/stdlib/source/lux/control/apply.lux
index 9e5f1b6ae..39ea39991 100644
--- a/stdlib/source/lux/control/apply.lux
+++ b/stdlib/source/lux/control/apply.lux
@@ -1,7 +1,7 @@
(.module:
lux
[//
- [functor (#+ Functor)]
+ ["." functor (#+ Functor)]
[monad (#+ Monad)]])
(signature: #export (Apply f)
diff --git a/stdlib/source/lux/control/comonad.lux b/stdlib/source/lux/control/comonad.lux
index 937a121b1..4e294d00e 100644
--- a/stdlib/source/lux/control/comonad.lux
+++ b/stdlib/source/lux/control/comonad.lux
@@ -2,7 +2,7 @@
[lux #*
[data
[collection
- [list ("list/" Fold)]]]]
+ ["." list ("list/" Fold)]]]]
[//
["F" functor]])
diff --git a/stdlib/source/lux/control/concatenative.lux b/stdlib/source/lux/control/concatenative.lux
index bed6e9dd5..7eb662a2e 100644
--- a/stdlib/source/lux/control/concatenative.lux
+++ b/stdlib/source/lux/control/concatenative.lux
@@ -6,14 +6,15 @@
f/+ f/- f/* f// f/% f/= f/< f/<= f/> f/>=)
[control
["p" parser ("parser/" Monad)]
- [monad]]
+ ["." monad]]
[data
- [text]
- text/format
- [maybe ("maybe/" Monad)]
- [collection [list ("list/" Fold Functor)]]]
- [macro (#+ with-gensyms Monad)
- [code]
+ ["." text
+ format]
+ ["." maybe ("maybe/" Monad)]
+ [collection
+ ["." list ("list/" Fold Functor)]]]
+ ["." macro (#+ with-gensyms Monad)
+ ["." code]
["s" syntax (#+ syntax:)]
[syntax
["cs" common]
@@ -210,44 +211,44 @@
[Nat Nat n/* .n/*]
[Nat Nat n// .n//]
[Nat Nat n/% .n/%]
- [Nat Bit n/= .n/=]
- [Nat Bit n/< .n/<]
- [Nat Bit n/<= .n/<=]
- [Nat Bit n/> .n/>]
- [Nat Bit n/>= .n/>=]
+ [Nat Bit n/= .n/=]
+ [Nat Bit n/< .n/<]
+ [Nat Bit n/<= .n/<=]
+ [Nat Bit n/> .n/>]
+ [Nat Bit n/>= .n/>=]
[Int Int i/+ .i/+]
[Int Int i/- .i/-]
[Int Int i/* .i/*]
[Int Int i// .i//]
[Int Int i/% .i/%]
- [Int Bit i/= .i/=]
- [Int Bit i/< .i/<]
- [Int Bit i/<= .i/<=]
- [Int Bit i/> .i/>]
- [Int Bit i/>= .i/>=]
+ [Int Bit i/= .i/=]
+ [Int Bit i/< .i/<]
+ [Int Bit i/<= .i/<=]
+ [Int Bit i/> .i/>]
+ [Int Bit i/>= .i/>=]
[Rev Rev r/+ .r/+]
[Rev Rev r/- .r/-]
[Rev Rev r/* .r/*]
[Rev Rev r// .r//]
[Rev Rev r/% .r/%]
- [Rev Bit r/= .r/=]
- [Rev Bit r/< .r/<]
- [Rev Bit r/<= .r/<=]
- [Rev Bit r/> .r/>]
- [Rev Bit r/>= .r/>=]
+ [Rev Bit r/= .r/=]
+ [Rev Bit r/< .r/<]
+ [Rev Bit r/<= .r/<=]
+ [Rev Bit r/> .r/>]
+ [Rev Bit r/>= .r/>=]
[Frac Frac f/+ .f/+]
[Frac Frac f/- .f/-]
[Frac Frac f/* .f/*]
[Frac Frac f// .f//]
[Frac Frac f/% .f/%]
- [Frac Bit f/= .f/=]
- [Frac Bit f/< .f/<]
- [Frac Bit f/<= .f/<=]
- [Frac Bit f/> .f/>]
- [Frac Bit f/>= .f/>=]
+ [Frac Bit f/= .f/=]
+ [Frac Bit f/< .f/<]
+ [Frac Bit f/<= .f/<=]
+ [Frac Bit f/> .f/>]
+ [Frac Bit f/>= .f/>=]
)
(def: #export if
diff --git a/stdlib/source/lux/control/contract.lux b/stdlib/source/lux/control/contract.lux
index d7e054a9b..72aefd174 100644
--- a/stdlib/source/lux/control/contract.lux
+++ b/stdlib/source/lux/control/contract.lux
@@ -3,8 +3,10 @@
[control
monad]
[data
- text/format]
- [macro (#+) [code]
+ [text
+ format]]
+ [macro (#+ with-gensyms)
+ ["." code]
["s" syntax (#+ syntax:)]]])
(def: #export (assert! message test)
@@ -30,7 +32,7 @@
"Otherwise, an error is raised."
(post i/even?
(i/+ 2 2)))}
- (macro.with-gensyms [g!output]
+ (with-gensyms [g!output]
(wrap (list (` (let [(~ g!output) (~ expr)]
(exec (assert! (~ (code.text (format "Post-condition failed: " (%code test))))
((~ test) (~ g!output)))
diff --git a/stdlib/source/lux/control/exception.lux b/stdlib/source/lux/control/exception.lux
index 296513718..9983a7ce4 100644
--- a/stdlib/source/lux/control/exception.lux
+++ b/stdlib/source/lux/control/exception.lux
@@ -5,12 +5,13 @@
["p" parser]]
[data
["/" error (#+ Error)]
- [maybe]
- [product]
- [text ("text/" Monoid)]
- [collection [list ("list/" Functor Fold)]]]
+ ["." maybe]
+ ["." product]
+ ["." text ("text/" Monoid)]
+ [collection
+ ["." list ("list/" Functor Fold)]]]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]
[syntax
["cs" common]
diff --git a/stdlib/source/lux/control/monad.lux b/stdlib/source/lux/control/monad.lux
index 997bb2117..c98851c95 100644
--- a/stdlib/source/lux/control/monad.lux
+++ b/stdlib/source/lux/control/monad.lux
@@ -1,6 +1,7 @@
(.module:
lux
- [// [functor (#+ Functor)]])
+ [//
+ ["." functor (#+ Functor)]])
## [Utils]
(def: (list/fold f init xs)
diff --git a/stdlib/source/lux/control/monad/indexed.lux b/stdlib/source/lux/control/monad/indexed.lux
index 9e0cd9fd4..576428512 100644
--- a/stdlib/source/lux/control/monad/indexed.lux
+++ b/stdlib/source/lux/control/monad/indexed.lux
@@ -5,7 +5,7 @@
["p" parser]]
[data
[collection
- [list ("list/" Functor Fold)]]]
+ ["." list ("list/" Functor Fold)]]]
["." macro
["s" syntax (#+ Syntax syntax:)]]])
diff --git a/stdlib/source/lux/control/parser.lux b/stdlib/source/lux/control/parser.lux
index fc42d5976..369e4a193 100644
--- a/stdlib/source/lux/control/parser.lux
+++ b/stdlib/source/lux/control/parser.lux
@@ -4,10 +4,11 @@
[functor (#+ Functor)]
[apply (#+ Apply)]
[monad (#+ do Monad)]
- [codec]]
+ [codec (#+ Codec)]]
[data
- [collection [list ("list/" Functor Monoid)]]
- [product]
+ [collection
+ ["." list ("list/" Functor Monoid)]]
+ ["." product]
["e" error (#+ Error)]]])
(type: #export (Parser s a)
@@ -261,7 +262,7 @@
(wrap output)))
(def: #export (codec Codec parser)
- (All [s a z] (-> (codec.Codec a z) (Parser s a) (Parser s z)))
+ (All [s a z] (-> (Codec a z) (Parser s a) (Parser s z)))
(function (_ input)
(case (parser input)
(#e.Error error)
diff --git a/stdlib/source/lux/control/pipe.lux b/stdlib/source/lux/control/pipe.lux
index 97e38b365..2a6f4804c 100644
--- a/stdlib/source/lux/control/pipe.lux
+++ b/stdlib/source/lux/control/pipe.lux
@@ -5,11 +5,11 @@
["p" parser]]
[data
["e" error]
- [collection [list ("list/" Fold Monad)]]]
+ [collection
+ ["." list ("list/" Fold Monad)]]]
[macro (#+ with-gensyms)
["s" syntax (#+ syntax: Syntax)]
- [code]]
- ])
+ ["." code]]])
## [Syntax]
(def: body^
diff --git a/stdlib/source/lux/control/predicate.lux b/stdlib/source/lux/control/predicate.lux
index 1d683bf5a..500395cbf 100644
--- a/stdlib/source/lux/control/predicate.lux
+++ b/stdlib/source/lux/control/predicate.lux
@@ -1,7 +1,8 @@
(.module:
[lux #*
- [control [monoid (#+ Monoid)]]
- [function]])
+ [control
+ [monoid (#+ Monoid)]]
+ ["." function]])
(type: #export (Predicate a)
(-> a Bit))
diff --git a/stdlib/source/lux/control/reader.lux b/stdlib/source/lux/control/reader.lux
index dfe8724e0..1d19b5594 100644
--- a/stdlib/source/lux/control/reader.lux
+++ b/stdlib/source/lux/control/reader.lux
@@ -3,7 +3,7 @@
[control
["F" functor]
["A" apply]
- [monad (#+ do Monad)]]])
+ ["." monad (#+ do Monad)]]])
## [Types]
(type: #export (Reader r a)
diff --git a/stdlib/source/lux/control/region.lux b/stdlib/source/lux/control/region.lux
index d83f82279..8b0b15a69 100644
--- a/stdlib/source/lux/control/region.lux
+++ b/stdlib/source/lux/control/region.lux
@@ -3,12 +3,14 @@
[control
[functor (#+ Functor)]
[apply (#+ Apply)]
- [monad (#+ Monad do)]
+ ["." monad (#+ Monad do)]
["ex" exception (#+ Exception exception:)]]
[data
["e" error (#+ Error)]
- text/format
- [collection [list ("list/" Fold)]]]])
+ [text
+ format]
+ [collection
+ [list ("list/" Fold)]]]])
(type: (Cleaner r m)
(-> r (m (Error Any))))
diff --git a/stdlib/source/lux/control/writer.lux b/stdlib/source/lux/control/writer.lux
index 25e665b73..a93242297 100644
--- a/stdlib/source/lux/control/writer.lux
+++ b/stdlib/source/lux/control/writer.lux
@@ -4,7 +4,7 @@
monoid
["F" functor]
["A" apply]
- [monad (#+ do Monad)]]])
+ ["." monad (#+ do Monad)]]])
(type: #export (Writer l a)
{#.doc "Represents a value with an associated 'log' value to record arbitrary information."}
diff --git a/stdlib/source/lux/data/collection/array.lux b/stdlib/source/lux/data/collection/array.lux
index 7093de9a1..451e4c5f2 100644
--- a/stdlib/source/lux/data/collection/array.lux
+++ b/stdlib/source/lux/data/collection/array.lux
@@ -7,9 +7,9 @@
fold
[predicate (#+ Predicate)]]
[data
- [collection [list ("list/" Fold)]]
- [product]]
- ])
+ [collection
+ ["." list ("list/" Fold)]]
+ ["." product]]])
(def: #export (new size)
(All [a] (-> Nat (Array a)))
diff --git a/stdlib/source/lux/data/collection/bits.lux b/stdlib/source/lux/data/collection/bits.lux
index 05de58e37..803654c6c 100644
--- a/stdlib/source/lux/data/collection/bits.lux
+++ b/stdlib/source/lux/data/collection/bits.lux
@@ -4,12 +4,13 @@
[equivalence (#+ Equivalence)]
pipe]
[data
- [maybe]
+ ["." maybe]
[number
- [i64]]
+ ["." i64]]
[text
format]
- [collection [array ("array/" Fold)]]]])
+ [collection
+ ["." array ("array/" Fold)]]]])
(type: #export Chunk I64)
diff --git a/stdlib/source/lux/data/collection/dictionary.lux b/stdlib/source/lux/data/collection/dictionary.lux
index 27ee863cc..adea785cf 100644
--- a/stdlib/source/lux/data/collection/dictionary.lux
+++ b/stdlib/source/lux/data/collection/dictionary.lux
@@ -4,13 +4,13 @@
hash
[equivalence (#+ Equivalence)]]
[data
- [maybe]
- [product]
+ ["." maybe]
+ ["." product]
["." number
- [i64]]
+ ["." i64]]
[collection
- [list ("list/" Fold Functor Monoid)]
- [array ("array/" Functor Fold)]]]
+ ["." list ("list/" Fold Functor Monoid)]
+ ["." array ("array/" Functor Fold)]]]
])
## This implementation of Hash Array Mapped Trie (HAMT) is based on
diff --git a/stdlib/source/lux/data/collection/dictionary/ordered.lux b/stdlib/source/lux/data/collection/dictionary/ordered.lux
index 0af6bd341..96e989300 100644
--- a/stdlib/source/lux/data/collection/dictionary/ordered.lux
+++ b/stdlib/source/lux/data/collection/dictionary/ordered.lux
@@ -6,10 +6,11 @@
[order (#+ Order)]]
[data
["p" product]
- [maybe]
- [collection [list ("list/" Monoid Fold)]]]
+ ["." maybe]
+ [collection
+ [list ("list/" Monoid Fold)]]]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]])
(def: error-message Text "Invariant violation")
diff --git a/stdlib/source/lux/data/collection/list.lux b/stdlib/source/lux/data/collection/list.lux
index 111c9b00e..9746fdfae 100644
--- a/stdlib/source/lux/data/collection/list.lux
+++ b/stdlib/source/lux/data/collection/list.lux
@@ -2,14 +2,14 @@
[lux #*
[control
[monoid (#+ Monoid)]
- [functor (#+ Functor)]
+ ["." functor (#+ Functor)]
[apply (#+ Apply)]
- [monad (#+ do Monad)]
+ ["." monad (#+ do Monad)]
[equivalence (#+ Equivalence)]
- [fold]]
+ [fold (#+ Fold)]]
[data
bit
- [product]]])
+ ["." product]]])
## [Types]
## (type: (List a)
@@ -17,7 +17,7 @@
## (#Cons a (List a)))
## [Functions]
-(structure: #export _ (fold.Fold List)
+(structure: #export _ (Fold List)
(def: (fold f init xs)
(case xs
#.Nil
diff --git a/stdlib/source/lux/data/collection/queue.lux b/stdlib/source/lux/data/collection/queue.lux
index 864dfb67d..76aed3a63 100644
--- a/stdlib/source/lux/data/collection/queue.lux
+++ b/stdlib/source/lux/data/collection/queue.lux
@@ -3,7 +3,9 @@
[control
[equivalence (#+ Equivalence)]
["F" functor]]
- [data [collection [list ("list/" Monoid Functor)]]]])
+ [data
+ [collection
+ ["." list ("list/" Monoid Functor)]]]])
(type: #export (Queue a)
{#front (List a)
diff --git a/stdlib/source/lux/data/collection/queue/priority.lux b/stdlib/source/lux/data/collection/queue/priority.lux
index 11162ae8c..0e86ae070 100644
--- a/stdlib/source/lux/data/collection/queue/priority.lux
+++ b/stdlib/source/lux/data/collection/queue/priority.lux
@@ -4,9 +4,11 @@
[equivalence (#+ Equivalence)]
[monad (#+ do Monad)]]
[data
- [number ("nat/" Interval)]
- [maybe]
- [collection [tree [finger (#+ Tree)]]]]])
+ ["." maybe]
+ ["." number ("nat/" Interval)]
+ [collection
+ [tree
+ ["." finger (#+ Tree)]]]]])
(type: #export Priority Nat)
diff --git a/stdlib/source/lux/data/collection/row.lux b/stdlib/source/lux/data/collection/row.lux
index 23e5ded20..7974c4a90 100644
--- a/stdlib/source/lux/data/collection/row.lux
+++ b/stdlib/source/lux/data/collection/row.lux
@@ -10,17 +10,16 @@
["p" parser]
[predicate (#+ Predicate)]]
[data
- [maybe]
- [product]
+ ["." maybe]
+ ["." product]
[number
- [i64]]
+ ["." i64]]
[collection
- [list ("list/" Fold Functor Monoid)]
+ ["." list ("list/" Fold Functor Monoid)]
["." array ("array/" Functor Fold)]]]
[macro (#+ with-gensyms)
- [code]
- ["s" syntax (#+ syntax: Syntax)]]
- ])
+ ["." code]
+ ["s" syntax (#+ syntax: Syntax)]]])
## [Utils]
(type: (Node a)
diff --git a/stdlib/source/lux/data/collection/sequence.lux b/stdlib/source/lux/data/collection/sequence.lux
index 9a8258de2..d68116ae4 100644
--- a/stdlib/source/lux/data/collection/sequence.lux
+++ b/stdlib/source/lux/data/collection/sequence.lux
@@ -4,14 +4,15 @@
functor
monad
comonad
- [continuation (#+ pending Cont)]
+ ["." continuation (#+ pending Cont)]
["p" parser]]
[macro (#+ with-gensyms)
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]
[data
bit
- [collection [list ("list/" Monad)]]]])
+ [collection
+ [list ("list/" Monad)]]]])
## [Types]
(type: #export (Sequence a)
diff --git a/stdlib/source/lux/data/collection/set.lux b/stdlib/source/lux/data/collection/set.lux
index d78ae6d19..00c02fabe 100644
--- a/stdlib/source/lux/data/collection/set.lux
+++ b/stdlib/source/lux/data/collection/set.lux
@@ -2,13 +2,14 @@
[lux #*
[control
[equivalence (#+ Equivalence)]
- [hash (#+ Hash)]
+ ["." hash (#+ Hash)]
[predicate (#+ Predicate)]]
[data
[collection
["dict" dictionary (#+ Dictionary)]
- [list ("list/" Fold)]]]
- [type abstract]])
+ ["." list ("list/" Fold)]]]
+ [type
+ abstract]])
(abstract: #export (Set a)
{}
diff --git a/stdlib/source/lux/data/collection/set/multi.lux b/stdlib/source/lux/data/collection/set/multi.lux
index 314c0423c..e29cb126b 100644
--- a/stdlib/source/lux/data/collection/set/multi.lux
+++ b/stdlib/source/lux/data/collection/set/multi.lux
@@ -4,14 +4,17 @@
[control
[equivalence (#+ Equivalence)]
[hash (#+ Hash)]]
- [function]
- [language [type (#+ :share)]]
- [type abstract]]
- [//// [maybe]]
+ ["." function]
+ [language
+ [type (#+ :share)]]
+ [type
+ abstract]]
+ [////
+ ["." maybe]]
[///
- [list ("list/" Fold)]
- [dictionary (#+ Dictionary)]]
- [//])
+ ["." list ("list/" Fold)]
+ ["." dictionary (#+ Dictionary)]]
+ ["." //])
(abstract: #export (Set a)
{}
diff --git a/stdlib/source/lux/data/collection/set/ordered.lux b/stdlib/source/lux/data/collection/set/ordered.lux
index b9fff0680..cccfb2768 100644
--- a/stdlib/source/lux/data/collection/set/ordered.lux
+++ b/stdlib/source/lux/data/collection/set/ordered.lux
@@ -5,9 +5,10 @@
[order (#+ Order)]]
[data
[collection
- [list ("list/" Fold)]
+ ["." list ("list/" Fold)]
[dictionary ["//" ordered]]]]
- [type abstract]])
+ [type
+ abstract]])
(abstract: #export (Set a)
{}
diff --git a/stdlib/source/lux/data/collection/stack.lux b/stdlib/source/lux/data/collection/stack.lux
index 8a24010e7..eec2aae23 100644
--- a/stdlib/source/lux/data/collection/stack.lux
+++ b/stdlib/source/lux/data/collection/stack.lux
@@ -2,7 +2,7 @@
[lux #*
[data
[collection
- [list]]]])
+ ["." list]]]])
## [Types]
(type: #export (Stack a)
diff --git a/stdlib/source/lux/data/collection/tree/finger.lux b/stdlib/source/lux/data/collection/tree/finger.lux
index 3c449f57a..84859dca5 100644
--- a/stdlib/source/lux/data/collection/tree/finger.lux
+++ b/stdlib/source/lux/data/collection/tree/finger.lux
@@ -3,7 +3,9 @@
[control
["m" monoid]
[predicate (#+ Predicate)]]
- [data [text format]]])
+ [data
+ [text
+ format]]])
(type: #export (Node m a)
(#Leaf m a)
diff --git a/stdlib/source/lux/data/collection/tree/rose.lux b/stdlib/source/lux/data/collection/tree/rose.lux
index 86f1fc49f..6732c0da4 100644
--- a/stdlib/source/lux/data/collection/tree/rose.lux
+++ b/stdlib/source/lux/data/collection/tree/rose.lux
@@ -6,9 +6,11 @@
equivalence
["p" parser]
fold]
- [data [collection [list ("list/" Monad Fold)]]]
+ [data
+ [collection
+ ["." list ("list/" Monad Fold)]]]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]])
## [Types]
diff --git a/stdlib/source/lux/data/collection/tree/rose/parser.lux b/stdlib/source/lux/data/collection/tree/rose/parser.lux
index a2dd954b9..5364be8c5 100644
--- a/stdlib/source/lux/data/collection/tree/rose/parser.lux
+++ b/stdlib/source/lux/data/collection/tree/rose/parser.lux
@@ -6,7 +6,7 @@
[data
["E" error]]]
[// (#+ Tree)
- [zipper (#+ Zipper)]])
+ ["." zipper (#+ Zipper)]])
(type: #export (Parser t a)
(p.Parser (Zipper t) a))
diff --git a/stdlib/source/lux/data/collection/tree/rose/zipper.lux b/stdlib/source/lux/data/collection/tree/rose/zipper.lux
index 030ddb36e..7d8412985 100644
--- a/stdlib/source/lux/data/collection/tree/rose/zipper.lux
+++ b/stdlib/source/lux/data/collection/tree/rose/zipper.lux
@@ -4,14 +4,14 @@
functor
comonad]
[data
+ ["." maybe ("maybe/" Monad)]
[collection
- [list ("list/" Functor Fold Monoid)]
- [tree [rose (#+ Tree) ("tree/" Functor)]]
- [stack (#+ Stack)]]
- [maybe ("maybe/" Monad)]]
+ ["." list ("list/" Functor Fold Monoid)]
+ ["." stack (#+ Stack)]]]
["." macro
- [code]
- ["s" syntax (#+ syntax: Syntax)]]])
+ ["." code]
+ ["s" syntax (#+ syntax: Syntax)]]]
+ ["." // (#+ Tree) ("tree/" Functor)])
## Adapted from the clojure.zip namespace in the Clojure standard library.
@@ -37,11 +37,11 @@
(def: #export (value zipper)
(All [a] (-> (Zipper a) a))
- (|> zipper (get@ [#node #rose.value])))
+ (|> zipper (get@ [#node #//.value])))
(def: #export (children zipper)
(All [a] (-> (Zipper a) (List (Tree a))))
- (|> zipper (get@ [#node #rose.children])))
+ (|> zipper (get@ [#node #//.children])))
(def: #export (branch? zipper)
(All [a] (-> (Zipper a) Bit))
@@ -88,12 +88,12 @@
## TODO: Remove once new-luxc becomes the standard compiler.
(update@ #node (: (-> (Tree ($ +0)) (Tree ($ +0)))
(function (_ node)
- (set@ #rose.children (list/compose (list.reverse (get@ #lefts zipper))
- (#.Cons (get@ #node zipper)
- (get@ #rights zipper)))
+ (set@ #//.children (list/compose (list.reverse (get@ #lefts zipper))
+ (#.Cons (get@ #node zipper)
+ (get@ #rights zipper)))
node))))
## (update@ #node (function (_ node)
- ## (set@ #rose.children (list/compose (list.reverse (get@ #lefts zipper))
+ ## (set@ #//.children (list/compose (list.reverse (get@ #lefts zipper))
## (#.Cons (get@ #node zipper)
## (get@ #rights zipper)))
## node)))
@@ -144,34 +144,34 @@
(def: #export (set value zipper)
(All [a] (-> a (Zipper a) (Zipper a)))
- (set@ [#node #rose.value] value zipper))
+ (set@ [#node #//.value] value zipper))
(def: #export (update f zipper)
(All [a] (-> (-> a a) (Zipper a) (Zipper a)))
- (update@ [#node #rose.value] f zipper))
+ (update@ [#node #//.value] f zipper))
(def: #export (prepend-child value zipper)
(All [a] (-> a (Zipper a) (Zipper a)))
- (update@ [#node #rose.children]
+ (update@ [#node #//.children]
(function (_ children)
## TODO: Remove once new-luxc becomes the standard compiler.
(list& (: (Tree ($ +0))
- (rose.tree [value {}]))
+ (//.tree [value {}]))
children)
- ## (list& (rose.tree [value {}])
+ ## (list& (//.tree [value {}])
## children)
)
zipper))
(def: #export (append-child value zipper)
(All [a] (-> a (Zipper a) (Zipper a)))
- (update@ [#node #rose.children]
+ (update@ [#node #//.children]
(function (_ children)
(list/compose children
## TODO: Remove once new-luxc becomes the standard compiler.
(list (: (Tree ($ +0))
- (rose.tree [value {}])))
- ## (list (rose.tree [value {}]))
+ (//.tree [value {}])))
+ ## (list (//.tree [value {}]))
))
zipper))
@@ -185,7 +185,7 @@
(#.Some next)
(#.Some (|> next
- (update@ [#node #rose.children] (|>> list.tail (maybe.default (list)))))))
+ (update@ [#node #//.children] (|>> list.tail (maybe.default (list)))))))
(#.Cons next side)
(#.Some (|> zipper
@@ -204,9 +204,9 @@
(update@ (function (_ side)
## TODO: Remove once new-luxc becomes the standard compiler.
(#.Cons (: (Tree ($ +0))
- (rose.tree [value {}]))
+ (//.tree [value {}]))
side)
- ## (#.Cons (rose.tree [value {}])
+ ## (#.Cons (//.tree [value {}])
## side)
))))))]
@@ -225,13 +225,13 @@
## (structure: #export _ (CoMonad Zipper)
## (def: functor Functor)
-## (def: unwrap (get@ [#node #rose.value]))
+## (def: unwrap (get@ [#node #//.value]))
## (def: (split wa)
## (let [tree-splitter (function (tree-splitter tree)
-## {#rose.value (zip tree)
-## #rose.children (list/map tree-splitter
-## (get@ #rose.children tree))})]
+## {#//.value (zip tree)
+## #//.children (list/map tree-splitter
+## (get@ #//.children tree))})]
## {#parent (|> wa (get@ #parent) (maybe/map split))
## #lefts (|> wa (get@ #lefts) (list/map tree-splitter))
## #rights (|> wa (get@ #rights) (list/map tree-splitter))
diff --git a/stdlib/source/lux/data/color.lux b/stdlib/source/lux/data/color.lux
index a7b9fa0c3..50beed6d9 100644
--- a/stdlib/source/lux/data/color.lux
+++ b/stdlib/source/lux/data/color.lux
@@ -1,9 +1,12 @@
(.module:
[lux #*
[control ["eq" equivalence]]
- [data [collection [list ("list/" Functor)]]]
- [math]
- [type abstract]])
+ [data
+ [collection
+ ["." list ("list/" Functor)]]]
+ ["." math]
+ [type
+ abstract]])
(def: rgb Nat +256)
(def: top Nat (dec rgb))
diff --git a/stdlib/source/lux/data/format/binary.lux b/stdlib/source/lux/data/format/binary.lux
index b0c2a8b65..c3724c703 100644
--- a/stdlib/source/lux/data/format/binary.lux
+++ b/stdlib/source/lux/data/format/binary.lux
@@ -6,12 +6,13 @@
["ex" exception (#+ exception:)]
[equivalence (#+ Equivalence)]]
[data
- [error]
+ ["." error]
+ ["." number]
[text
- [encoding]
- [format (#+ %n)]]
- [number]]
- [world [blob (#+ Blob)]]])
+ ["." encoding]
+ [format (#+ %n)]]]
+ [world
+ ["." blob (#+ Blob)]]])
## Exceptions
(exception: #export (blob-was-not-fully-read {length Nat} {read Nat})
@@ -78,7 +79,7 @@
( offset value)
error.assume))])})]
- [bits/8 size/8 blob.read/8 blob.write/8]
+ [bits/8 size/8 blob.read/8 blob.write/8]
[bits/16 size/16 blob.read/16 blob.write/16]
[bits/32 size/32 blob.read/32 blob.write/32]
[bits/64 size/64 blob.read/64 blob.write/64]
diff --git a/stdlib/source/lux/data/format/css.lux b/stdlib/source/lux/data/format/css.lux
index 6afbe164e..e2b2737d2 100644
--- a/stdlib/source/lux/data/format/css.lux
+++ b/stdlib/source/lux/data/format/css.lux
@@ -1,11 +1,12 @@
(.module:
[lux #*
[data
- [color (#+ Color)]
- [number]
+ ["." color (#+ Color)]
+ ["." number]
["." text
format]
- [collection [list ("list/" Functor Monoid)]]]])
+ [collection
+ ["." list ("list/" Functor Monoid)]]]])
(type: #export Selector
Text)
diff --git a/stdlib/source/lux/data/format/json.lux b/stdlib/source/lux/data/format/json.lux
index 261ff1330..764beab83 100644
--- a/stdlib/source/lux/data/format/json.lux
+++ b/stdlib/source/lux/data/format/json.lux
@@ -3,26 +3,26 @@
For more information, please see: http://www.json.org/"}
[lux (#- Array)
[control
- [monad (#+ do Monad)]
+ ["." monad (#+ do Monad)]
[equivalence (#+ Equivalence)]
codec
["p" parser ("parser/" Monad)]]
[data
- [bit]
- [text ("text/" Equivalence Monoid)
- ["l" lexer]]
- [number ("frac/" Codec) ("nat/" Codec)]
- [maybe]
+ ["." bit]
+ ["." maybe]
["e" error]
- [sum]
- [product]
+ ["." sum]
+ ["." product]
+ ["." number ("frac/" Codec) ("nat/" Codec)]
+ ["." text ("text/" Equivalence Monoid)
+ ["l" lexer]]
[collection
- [list ("list/" Fold Monad)]
- [row (#+ Row row) ("row/" Monad)]
+ ["." list ("list/" Fold Monad)]
+ ["." row (#+ Row row) ("row/" Monad)]
["dict" dictionary (#+ Dictionary)]]]
- [macro (#+ Monad with-gensyms)
+ ["." macro (#+ Monad with-gensyms)
["s" syntax (#+ syntax:)]
- [code]]])
+ ["." code]]])
(do-template [ ]
[(type: #export )]
diff --git a/stdlib/source/lux/data/format/xml.lux b/stdlib/source/lux/data/format/xml.lux
index 6d6e93799..e58a29c96 100644
--- a/stdlib/source/lux/data/format/xml.lux
+++ b/stdlib/source/lux/data/format/xml.lux
@@ -7,14 +7,14 @@
["p" parser ("parser/" Monad)]
["ex" exception (#+ exception:)]]
[data
- [text ("text/" Equivalence Monoid)
- ["l" lexer]]
- [number]
+ ["." number]
["E" error]
- [product]
- [ident ("ident/" Equivalence Codec)]
+ ["." product]
+ ["." ident ("ident/" Equivalence Codec)]
+ ["." text ("text/" Equivalence Monoid)
+ ["l" lexer]]
[collection
- [list ("list/" Monad)]
+ ["." list ("list/" Monad)]
["d" dictionary]]]])
(type: #export Tag Ident)
diff --git a/stdlib/source/lux/data/ident.lux b/stdlib/source/lux/data/ident.lux
index 545b22a65..ab8f30ab6 100644
--- a/stdlib/source/lux/data/ident.lux
+++ b/stdlib/source/lux/data/ident.lux
@@ -4,7 +4,8 @@
[equivalence (#+ Equivalence)]
[codec (#+ Codec)]
hash]
- [data [text ("text/" Monoid Equivalence)]]])
+ [data
+ ["." text ("text/" Monoid Hash)]]])
## [Types]
## (type: Ident
@@ -49,5 +50,4 @@
(def: eq Equivalence)
(def: (hash [module name])
- (let [(^open) text.Hash]
- (n/+ (hash module) (hash name)))))
+ (n/+ (text/hash module) (text/hash name))))
diff --git a/stdlib/source/lux/data/lazy.lux b/stdlib/source/lux/data/lazy.lux
index df48114d8..66fac2989 100644
--- a/stdlib/source/lux/data/lazy.lux
+++ b/stdlib/source/lux/data/lazy.lux
@@ -1,14 +1,16 @@
(.module:
[lux #*
- [io]
+ ["." io]
[control
[functor (#+ Functor)]
[apply (#+ Apply)]
[monad (#+ Monad do)]]
- [concurrency [atom]]
+ [concurrency
+ ["." atom]]
[macro (#+ with-gensyms)
["s" syntax (#+ syntax:)]]
- [type abstract]])
+ [type
+ abstract]])
(abstract: #export (Lazy a)
(-> [] a)
diff --git a/stdlib/source/lux/data/maybe.lux b/stdlib/source/lux/data/maybe.lux
index bc9d0af95..42e95d5f6 100644
--- a/stdlib/source/lux/data/maybe.lux
+++ b/stdlib/source/lux/data/maybe.lux
@@ -1,10 +1,10 @@
(.module:
[lux #*
[control
- ["m" monoid]
- ["F" functor]
- ["A" apply]
- [monad (#+ do Monad)]
+ [monoid (#+ Monoid)]
+ ["." functor (#+ Functor)]
+ [apply (#+ Apply)]
+ ["." monad (#+ do Monad)]
[equivalence (#+ Equivalence)]]])
## [Types]
@@ -13,20 +13,20 @@
## (#.Some a))
## [Structures]
-(structure: #export Monoid (All [a] (m.Monoid (Maybe a)))
+(structure: #export Monoid (All [a] (Monoid (Maybe a)))
(def: identity #.None)
(def: (compose xs ys)
(case xs
#.None ys
(#.Some x) (#.Some x))))
-(structure: #export _ (F.Functor Maybe)
+(structure: #export _ (Functor Maybe)
(def: (map f ma)
(case ma
#.None #.None
(#.Some a) (#.Some (f a)))))
-(structure: #export _ (A.Apply Maybe)
+(structure: #export _ (Apply Maybe)
(def: functor Functor)
(def: (apply ff fa)
@@ -63,7 +63,7 @@
(structure: #export (MaybeT Monad)
(All [M] (-> (Monad M) (Monad (All [a] (M (Maybe a))))))
- (def: functor (F.compose (get@ #monad.functor Monad) Functor))
+ (def: functor (functor.compose (get@ #monad.functor Monad) Functor))
(def: wrap (|>> (:: Monad wrap) (:: Monad wrap)))
diff --git a/stdlib/source/lux/data/number.lux b/stdlib/source/lux/data/number.lux
index 7f591c85c..cb71b5b07 100644
--- a/stdlib/source/lux/data/number.lux
+++ b/stdlib/source/lux/data/number.lux
@@ -5,16 +5,16 @@
[monoid (#+ Monoid)]
[equivalence (#+ Equivalence)]
hash
- [order]
+ ["." order (#+ Order)]
enum
interval
[codec (#+ Codec)]]
[data
["e" error]
- [maybe]
- [text]]]
+ ["." maybe]
+ ["." text]]]
[/
- [i64]])
+ ["." i64]])
## [Structures]
(do-template [ ]
@@ -28,7 +28,7 @@
)
(do-template [ ]
- [(structure: #export _ (order.Order )
+ [(structure: #export _ (Order )
(def: eq )
(def: < )
(def: <= )
diff --git a/stdlib/source/lux/data/number/complex.lux b/stdlib/source/lux/data/number/complex.lux
index 5c9c97d46..496116755 100644
--- a/stdlib/source/lux/data/number/complex.lux
+++ b/stdlib/source/lux/data/number/complex.lux
@@ -1,6 +1,6 @@
(.module: {#.doc "Complex arithmetic."}
[lux #*
- [math]
+ ["." math]
[control
[equivalence (#+ Equivalence)]
number
@@ -8,12 +8,13 @@
["M" monad (#+ do Monad)]
["p" parser]]
[data
- [number ("frac/" Number)]
+ ["." maybe]
+ ["." number ("frac/" Number)]
[text ("text/" Monoid)]
- [maybe]
- [collection [list ("list/" Functor)]]]
+ [collection
+ ["." list ("list/" Functor)]]]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]])
(type: #export Complex
diff --git a/stdlib/source/lux/data/number/ratio.lux b/stdlib/source/lux/data/number/ratio.lux
index 2aa332dc6..ffa4432a5 100644
--- a/stdlib/source/lux/data/number/ratio.lux
+++ b/stdlib/source/lux/data/number/ratio.lux
@@ -1,22 +1,22 @@
(.module: {#.doc "Rational arithmetic."}
[lux #*
- [math]
[control
[equivalence (#+ Equivalence)]
- [order]
+ [order (#+ Order)]
number
codec
monad
["p" parser]]
[data
- [number ("nat/" Codec)]
- [text ("text/" Monoid)
- format]
["E" error]
- [product]
- [maybe]]
+ ["." product]
+ ["." maybe]
+ [number ("nat/" Codec)]
+ ["." text ("text/" Monoid)
+ format]]
+ ["." math]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]])
(type: #export Ratio
@@ -105,7 +105,7 @@
(structure: #export _ (Equivalence Ratio)
(def: = ..=))
-(structure: #export _ (order.Order Ratio)
+(structure: #export _ (Order Ratio)
(def: eq Equivalence)
(def: < ..<)
(def: <= ..<=)
diff --git a/stdlib/source/lux/data/store.lux b/stdlib/source/lux/data/store.lux
index c1b974840..4cacb8329 100644
--- a/stdlib/source/lux/data/store.lux
+++ b/stdlib/source/lux/data/store.lux
@@ -3,7 +3,8 @@
[control
["F" functor]
comonad]
- [type implicit]])
+ [type
+ implicit]])
(type: #export (Store s a)
{#cursor s
diff --git a/stdlib/source/lux/data/text.lux b/stdlib/source/lux/data/text.lux
index a5223c3e3..940349f05 100644
--- a/stdlib/source/lux/data/text.lux
+++ b/stdlib/source/lux/data/text.lux
@@ -3,18 +3,18 @@
[control
[monoid (#+ Monoid)]
[equivalence (#+ Equivalence)]
- [order]
+ [order (#+ Order)]
[monad (#+ do Monad)]
[codec (#+ Codec)]
hash]
[data
- [maybe]
+ ["." maybe]
[number
- [i64]]
+ ["." i64]]
[collection
- [list ("list/" Fold)]]]
+ ["." list ("list/" Fold)]]]
[language
- [host]]])
+ ["." host]]])
(def: #export (size x)
(-> Text Nat)
@@ -144,7 +144,7 @@
(def: (= test subject)
("lux text =" subject test)))
-(structure: #export _ (order.Order Text)
+(structure: #export _ (Order Text)
(def: eq Equivalence)
(def: (< test subject)
diff --git a/stdlib/source/lux/data/text/buffer.lux b/stdlib/source/lux/data/text/buffer.lux
index 33708932e..a27015f7e 100644
--- a/stdlib/source/lux/data/text/buffer.lux
+++ b/stdlib/source/lux/data/text/buffer.lux
@@ -1,15 +1,17 @@
(.module:
[lux #*
[data
- [product]
- [text format]
- [collection [row (#+ Row) ("row/" Fold)]]]
+ ["." product]
+ [text
+ format]
+ [collection
+ ["." row (#+ Row) ("row/" Fold)]]]
[language
["_" host]]
[type
abstract]
[host (#+ import:)]]
- [//])
+ ["." //])
(`` (for {(~~ (static _.jvm))
(as-is (import: java/lang/CharSequence)
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux
index 2ea8e4a76..d5246e382 100644
--- a/stdlib/source/lux/data/text/encoding.lux
+++ b/stdlib/source/lux/data/text/encoding.lux
@@ -1,8 +1,11 @@
(.module:
[lux #*
- [data [error (#+ Error)]]
- [world [blob (#+ Blob)]]
- [language ["_" host]]
+ [data
+ ["." error (#+ Error)]]
+ [world
+ [blob (#+ Blob)]]
+ [language
+ ["_" host]]
[host (#+ import:)]])
(`` (for {(~~ (static _.jvm))
diff --git a/stdlib/source/lux/data/text/format.lux b/stdlib/source/lux/data/text/format.lux
index 4b9717fab..af2b8beab 100644
--- a/stdlib/source/lux/data/text/format.lux
+++ b/stdlib/source/lux/data/text/format.lux
@@ -4,24 +4,26 @@
[monad (#+ do Monad)]
["p" parser]]
[data
- [bit]
- [number]
- [text]
- [ident]
- [collection [list ("list/" Monad)]]
+ ["." bit]
+ ["." ident]
+ ["." number]
+ ["." text]
[format
- [xml]
- [json]]]
+ ["." xml]
+ ["." json]]
+ [collection
+ [list ("list/" Monad)]]]
[time
- [instant]
- [duration]
- [date]]
- [math [modular]]
+ ["." instant]
+ ["." duration]
+ ["." date]]
+ [math
+ ["." modular]]
["." macro
- [code]
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]
- [language [type]]
- ])
+ [language
+ ["." type]]])
## [Syntax]
(syntax: #export (format {fragments (p.many s.any)})
diff --git a/stdlib/source/lux/data/text/lexer.lux b/stdlib/source/lux/data/text/lexer.lux
index 3ece75c23..83e732471 100644
--- a/stdlib/source/lux/data/text/lexer.lux
+++ b/stdlib/source/lux/data/text/lexer.lux
@@ -4,12 +4,14 @@
[monad (#+ do Monad)]
["p" parser]]
[data
- [text ("text/" Monoid)]
- [product]
- [maybe]
+ ["." text ("text/" Monoid)]
+ ["." product]
+ ["." maybe]
["e" error]
- [collection [list]]]
- [macro [code]]])
+ [collection
+ ["." list]]]
+ [macro
+ ["." code]]])
(type: Offset Nat)
diff --git a/stdlib/source/lux/data/text/regex.lux b/stdlib/source/lux/data/text/regex.lux
index 94012c086..c7cba31c8 100644
--- a/stdlib/source/lux/data/text/regex.lux
+++ b/stdlib/source/lux/data/text/regex.lux
@@ -4,16 +4,17 @@
monad
["p" parser ("parser/" Monad)]]
[data
- [number ("int/" Codec)]
- [product]
+ ["." product]
["e" error]
- [maybe]
+ ["." maybe]
+ ["." number ("int/" Codec)]
["." text
["l" lexer]
format]
- [collection [list ("list/" Fold Monad)]]]
- [macro (#+ with-gensyms)
- [code]
+ [collection
+ ["." list ("list/" Fold Monad)]]]
+ ["." macro (#+ with-gensyms)
+ ["." code]
["s" syntax (#+ syntax:)]]])
## [Utils]
@@ -289,7 +290,7 @@
#.None
[(inc idx) (code.symbol ["" (int/encode idx)])])
access (if (n/> +0 num-captures)
- (` (product.left (~ name!)))
+ (` ((~! product.left) (~ name!)))
name!)]
[idx!
(list& name! names)
diff --git a/stdlib/source/lux/data/text/unicode.lux b/stdlib/source/lux/data/text/unicode.lux
index 11c69be84..a865fea1d 100644
--- a/stdlib/source/lux/data/text/unicode.lux
+++ b/stdlib/source/lux/data/text/unicode.lux
@@ -1,14 +1,16 @@
(.module:
[lux #*
[control
- [interval (#+ Interval)]
+ ["." interval (#+ Interval)]
[monoid (#+ Monoid)]]
[data
- [number (#+ hex) ("nat/" Interval)]
+ ["." number (#+ hex) ("nat/" Interval)]
[collection
- [list]
- [tree [finger (#+ Tree)]]]]
- [type abstract]])
+ ["." list]
+ [tree
+ ["." finger (#+ Tree)]]]]
+ [type
+ abstract]])
(type: #export Char Nat)
diff --git a/stdlib/source/lux/data/trace.lux b/stdlib/source/lux/data/trace.lux
index a0c366199..36d5acdf0 100644
--- a/stdlib/source/lux/data/trace.lux
+++ b/stdlib/source/lux/data/trace.lux
@@ -1,7 +1,7 @@
(.module:
[lux #*
[control
- [monoid (#+ Monoid)]
+ ["." monoid (#+ Monoid)]
[functor (#+ Functor)]
comonad]
function])
diff --git a/stdlib/source/lux/host.jvm.lux b/stdlib/source/lux/host.jvm.lux
index 118ae5a1f..acccabc77 100644
--- a/stdlib/source/lux/host.jvm.lux
+++ b/stdlib/source/lux/host.jvm.lux
@@ -1,23 +1,26 @@
(.module:
[lux (#- type)
[control
- [monad (#+ do Monad)]
- [enum]
+ ["." monad (#+ do Monad)]
+ ["." enum]
["p" parser]]
- [io (#+ IO Monad io)]
+ ["." io]
function
[data
- [collection [list ("list/" Monad Fold Monoid)]]
+ ["." maybe]
+ ["." product]
+ ["." error (#+ Error)]
+ [bit ("bit/" Codec)]
number
- [maybe]
- [product]
- [text ("text/" Equivalence Monoid)
+ ["." text ("text/" Equivalence Monoid)
format]
- [bit ("bit/" Codec)]]
- [macro (#+ with-gensyms Functor Monad)
- [code]
+ [collection
+ ["." list ("list/" Monad Fold Monoid)]]]
+ ["." macro (#+ with-gensyms Functor Monad)
+ ["." code]
["s" syntax (#+ syntax: Syntax)]]
- [language [type ("type/" Equivalence)]]
+ [language
+ ["." type ("type/" Equivalence)]]
])
(do-template [ ]
@@ -1583,8 +1586,8 @@
_
[return-type return-term]))]
- [decorate-return-try #import-member-try? (` (Either Text (~ return-type))) (` (try (~ return-term)))]
- [decorate-return-io #import-member-io? (` (IO (~ return-type))) (` (io (~ return-term)))]
+ [decorate-return-try #import-member-try? (` ((~! error.Error) (~ return-type))) (` (try (~ return-term)))]
+ [decorate-return-io #import-member-io? (` ((~! io.IO) (~ return-type))) (` ((~! io.io) (~ return-term)))]
)
(def: (free-type-param? [name bounds])
@@ -1785,7 +1788,7 @@
getter-name
(` ((~ getter-name) (~ g!obj))))
getter-type (if import-field-setter?
- (` (IO (~ typeC)))
+ (` ((~! io.IO) (~ typeC)))
typeC)
getter-type (if import-field-static?
getter-type
@@ -1800,7 +1803,7 @@
(` (??? (~ getter-body)))
getter-body)
getter-body (if import-field-setter?
- (` (io (~ getter-body)))
+ (` ((~! io.io) (~ getter-body)))
getter-body)]
(wrap (` (def: (~ getter-call)
(~ getter-type)
@@ -1811,8 +1814,8 @@
(` ((~ setter-name) (~ g!value)))
(` ((~ setter-name) (~ g!value) (~ g!obj))))
setter-type (if import-field-static?
- (` (All [(~+ tvar-asts)] (-> (~ typeC) (IO Any))))
- (` (All [(~+ tvar-asts)] (-> (~ typeC) (~ classC) (IO Any)))))
+ (` (All [(~+ tvar-asts)] (-> (~ typeC) ((~! io.IO) Any))))
+ (` (All [(~+ tvar-asts)] (-> (~ typeC) (~ classC) ((~! io.IO) Any)))))
setter-value (with-mode-field-set import-field-mode import-field-type g!value)
setter-value (if import-field-maybe?
(` (!!! (~ setter-value)))
@@ -1822,7 +1825,7 @@
(wrap (: (List Code)
(list (` (def: (~ setter-call)
(~ setter-type)
- (io ((~ (code.text setter-command)) (~ setter-value))))))))))
+ ((~! io.io) ((~ (code.text setter-command)) (~ setter-value))))))))))
(wrap (list)))]
(wrap (list& getter-interop setter-interop)))
)))
@@ -1842,7 +1845,7 @@
("jvm invokevirtual:java.lang.Class:isInterface:" class))
(def: (load-class class-name)
- (-> Text (Either Text (primitive "java.lang.Class" [Any])))
+ (-> Text (Error (primitive "java.lang.Class" [Any])))
(try ("jvm invokestatic:java.lang.Class:forName:java.lang.String" class-name)))
(def: (class-kind [class-name _])
@@ -2033,7 +2036,7 @@
"Afterwards, closes all resources (assumed to be subclasses of java.io.Closeable), and returns the value resulting from running the body."
(with-open [my-res1 (res1-constructor ___)
my-res2 (res1-constructor ___)]
- (do Monad
+ (do io.Monad
[foo (do-something my-res1)
bar (do-something-else my-res2)]
(do-one-last-thing foo bar))))}
@@ -2044,7 +2047,7 @@
closes (list/map (function (_ res)
(` (try ("jvm invokevirtual:java.io.Closeable:close:" (~ (code.symbol ["" (product.left res)]))))))
bindings)]
- (wrap (list (` (do Monad
+ (wrap (list (` (do (~! io.Monad)
[(~+ inits)
(~ g!output) (~ body)
(~' #let) [(~ g!_) (exec (~+ (list.reverse closes)) [])]]
diff --git a/stdlib/source/lux/language/compiler.lux b/stdlib/source/lux/language/compiler.lux
index e714773b7..03dd30e2a 100644
--- a/stdlib/source/lux/language/compiler.lux
+++ b/stdlib/source/lux/language/compiler.lux
@@ -1,15 +1,16 @@
(.module:
[lux #*
[control
- [state]
+ ["." state]
["ex" exception (#+ Exception exception:)]
[monad (#+ do)]]
[data
- [product]
- [error (#+ Error)]
+ ["." product]
+ ["." error (#+ Error)]
["." text
format]]
- [macro ["s" syntax (#+ syntax:)]]])
+ [macro
+ ["s" syntax (#+ syntax:)]]])
(type: #export (Operation s o)
(state.State' Error s o))
diff --git a/stdlib/source/lux/language/compiler/analysis.lux b/stdlib/source/lux/language/compiler/analysis.lux
index a2686d6bf..3c4a646fe 100644
--- a/stdlib/source/lux/language/compiler/analysis.lux
+++ b/stdlib/source/lux/language/compiler/analysis.lux
@@ -1,15 +1,16 @@
(.module:
[lux (#- nat int rev)
[data
- [product]
- [error]
+ ["." product]
+ ["." error]
[text ("text/" Equivalence)]
- [collection [list ("list/" Fold)]]]
- [function]]
+ [collection
+ ["." list ("list/" Fold)]]]
+ ["." function]]
[//
- [extension (#+ Extension)]
+ ["." extension (#+ Extension)]
[//
- [reference (#+ Register Variable Reference)]]])
+ ["." reference (#+ Register Variable Reference)]]])
(type: #export #rec Primitive
#Unit
diff --git a/stdlib/source/lux/language/compiler/analysis/case.lux b/stdlib/source/lux/language/compiler/analysis/case.lux
index 2f5162fbd..34a2b38d6 100644
--- a/stdlib/source/lux/language/compiler/analysis/case.lux
+++ b/stdlib/source/lux/language/compiler/analysis/case.lux
@@ -1,28 +1,29 @@
(.module:
[lux (#- case)
[control
- [monad (#+ do)]
+ ["." monad (#+ do)]
["ex" exception (#+ exception:)]]
[data
- [product]
- [error]
- [maybe]
+ ["." product]
+ ["." error]
+ ["." maybe]
[text
format]
- [collection [list ("list/" Fold Monoid Functor)]]]
+ [collection
+ ["." list ("list/" Fold Monoid Functor)]]]
["." macro
- [code]]]
- [// (#+ Pattern Analysis Operation Compiler)
- [scope]
+ ["." code]]]
+ ["." // (#+ Pattern Analysis Operation Compiler)
+ ["." scope]
["//." type]
- [structure]
+ ["." structure]
["/." //
- [extension]
+ ["." extension]
[//
["." type
["tc" check]]]]]
[/
- [coverage]])
+ ["." coverage]])
(exception: #export (cannot-match-type-with-pattern {type Type} {pattern Code})
(ex.report ["Type" (%type type)]
diff --git a/stdlib/source/lux/language/compiler/analysis/case/coverage.lux b/stdlib/source/lux/language/compiler/analysis/case/coverage.lux
index c19003df6..5c3ff1d72 100644
--- a/stdlib/source/lux/language/compiler/analysis/case/coverage.lux
+++ b/stdlib/source/lux/language/compiler/analysis/case/coverage.lux
@@ -1,20 +1,21 @@
(.module:
[lux #*
[control
- [monad (#+ do)]
+ ["." monad (#+ do)]
["ex" exception (#+ exception:)]
equivalence]
[data
[bit ("bit/" Equivalence)]
- [number]
+ ["." number]
["e" error ("error/" Monad)]
- [maybe]
- [text format]
+ ["." maybe]
+ [text
+ format]
[collection
- [list ("list/" Fold)]
+ ["." list ("list/" Fold)]
["dict" dictionary (#+ Dictionary)]]]]
- [//// ("operation/" Monad)]
- [/// (#+ Pattern Variant Operation)])
+ ["." //// ("operation/" Monad)]
+ ["." /// (#+ Pattern Variant Operation)])
(def: cases
(-> (Maybe Nat) Nat)
@@ -174,7 +175,7 @@
_
#0)))
-(open: "C/" Equivalence)
+(open: "coverage/" Equivalence)
## After determining the coverage of each individual pattern, it is
## necessary to merge them all to figure out if the entire
@@ -226,7 +227,7 @@
(#Variant allSF casesM)))))
[(#Seq leftA rightA) (#Seq leftSF rightSF)]
- (case [(C/= leftSF leftA) (C/= rightSF rightA)]
+ (case [(coverage/= leftSF leftA) (coverage/= rightSF rightA)]
## There is nothing the addition adds to the coverage.
[#1 #1]
redundant-pattern
@@ -254,12 +255,12 @@
## The left part will always match, so the addition is redundant.
(^multi [(#Seq left right) single]
- (C/= left single))
+ (coverage/= left single))
redundant-pattern
## The right part is not necessary, since it can always match the left.
(^multi [single (#Seq left right)]
- (C/= left single))
+ (coverage/= left single))
(error/wrap single)
## When merging a new coverage against one based on Alt, it may be
@@ -317,7 +318,7 @@
(undefined)))))
_
- (if (C/= so-far addition)
+ (if (coverage/= so-far addition)
## The addition cannot possibly improve the coverage.
redundant-pattern
## There are now 2 alternative paths.
diff --git a/stdlib/source/lux/language/compiler/analysis/expression.lux b/stdlib/source/lux/language/compiler/analysis/expression.lux
index f413b8077..1c74499ad 100644
--- a/stdlib/source/lux/language/compiler/analysis/expression.lux
+++ b/stdlib/source/lux/language/compiler/analysis/expression.lux
@@ -5,20 +5,19 @@
["ex" exception (#+ exception:)]]
[data
["e" error]
- [product]
[text
format]]
- [macro]]
- ["." ///
- [extension]]
- [// (#+ Analysis Operation Compiler)
- [type]
- [primitive]
- [structure]
- [reference]
- ["/." /// (#+ Eval)
- ## [".L" macro]
- ]])
+ ["." macro]]
+ ["." // (#+ Analysis Operation Compiler)
+ ["." type]
+ ["." primitive]
+ ["." structure]
+ ["." reference]
+ ["/." //
+ ["." extension]
+ ["//." // (#+ Eval)
+ ## [".L" macro]
+ ]]])
(exception: #export (macro-expansion-failed {message Text})
message)
diff --git a/stdlib/source/lux/language/compiler/analysis/function.lux b/stdlib/source/lux/language/compiler/analysis/function.lux
index 51f1892de..440c49237 100644
--- a/stdlib/source/lux/language/compiler/analysis/function.lux
+++ b/stdlib/source/lux/language/compiler/analysis/function.lux
@@ -4,21 +4,21 @@
monad
["ex" exception (#+ exception:)]]
[data
- [maybe]
+ ["." maybe]
["." text
format]
- [collection [list ("list/" Fold Monoid Monad)]]]
- ["." macro
- [code]]
+ [collection
+ ["." list ("list/" Fold Monoid Monad)]]]
+ ["." macro]
[language
["." type
["tc" check]]]]
- [// (#+ Analysis Operation Compiler)
- [scope]
+ ["." // (#+ Analysis Operation Compiler)
+ ["." scope]
["//." type]
- [inference]
+ ["." inference]
["/." //
- [extension]]])
+ ["." extension]]])
(exception: #export (cannot-analyse {expected Type} {function Text} {argument Text} {body Code})
(ex.report ["Type" (%type expected)]
diff --git a/stdlib/source/lux/language/compiler/analysis/inference.lux b/stdlib/source/lux/language/compiler/analysis/inference.lux
index 403ad0092..29084ce40 100644
--- a/stdlib/source/lux/language/compiler/analysis/inference.lux
+++ b/stdlib/source/lux/language/compiler/analysis/inference.lux
@@ -4,18 +4,19 @@
[monad (#+ do)]
["ex" exception (#+ exception:)]]
[data
- [maybe]
+ ["." maybe]
["." text
format]
- [collection [list ("list/" Functor)]]]
- [macro]]
+ [collection
+ ["." list ("list/" Functor)]]]
+ ["." macro]]
[////
["." type
["tc" check]]]
- [/// ("operation/" Monad)
- [extension]]
+ ["." /// ("operation/" Monad)
+ ["." extension]]
[// (#+ Tag Analysis Operation Compiler)]
- [//type])
+ ["." //type])
(exception: #export (variant-tag-out-of-bounds {size Nat} {tag Tag} {type Type})
(ex.report ["Tag" (%n tag)]
diff --git a/stdlib/source/lux/language/compiler/analysis/module.lux b/stdlib/source/lux/language/compiler/analysis/module.lux
index 1ac2b4ac4..7c21724bb 100644
--- a/stdlib/source/lux/language/compiler/analysis/module.lux
+++ b/stdlib/source/lux/language/compiler/analysis/module.lux
@@ -1,21 +1,21 @@
(.module:
[lux #*
[control
- [monad (#+ do)]
+ ["." monad (#+ do)]
["ex" exception (#+ exception:)]
pipe]
[data
- [text ("text/" Equivalence