aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/macro.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/macro.lux22
1 files changed, 11 insertions, 11 deletions
diff --git a/stdlib/source/lux/macro.lux b/stdlib/source/lux/macro.lux
index a39168fa7..d063f1ab2 100644
--- a/stdlib/source/lux/macro.lux
+++ b/stdlib/source/lux/macro.lux
@@ -98,7 +98,7 @@
(def: #export (assert message test)
{#.doc "Fails with the given message if the test is false."}
- (-> Text Bool (Meta Any))
+ (-> Text Bit (Meta Any))
(function (_ compiler)
(if test
(#e.Success [compiler []])
@@ -171,7 +171,7 @@
_
#.None))]
- [get-bool-ann #.Bool Bool]
+ [get-bit-ann #.Bit Bit]
[get-int-ann #.Int Int]
[get-frac-ann #.Frac Frac]
[get-text-ann #.Text Text]
@@ -189,13 +189,13 @@
(def: #export (flag-set? flag-name anns)
{#.doc "Finds out whether an annotation-as-a-flag is set (has value 'true')."}
- (-> Ident Code Bool)
- (maybe.default false (get-bool-ann flag-name anns)))
+ (-> Ident Code Bit)
+ (maybe.default false (get-bit-ann flag-name anns)))
(do-template [<name> <tag> <desc>]
[(def: #export <name>
{#.doc (code.text ($_ text/compose "Checks whether a definition is " <desc> "."))}
- (-> Code Bool)
+ (-> Code Bit)
(flag-set? (ident-for <tag>)))]
[export? #.export? "exported"]
@@ -207,7 +207,7 @@
)
(def: #export (aliased? annotations)
- (-> Code Bool)
+ (-> Code Bit)
(case (get-symbol-ann (ident-for #.alias) annotations)
(#.Some _)
true
@@ -417,7 +417,7 @@
(fail "Macro expanded to more than 1 element."))))
(def: #export (module-exists? module)
- (-> Text (Meta Bool))
+ (-> Text (Meta Bit))
(function (_ compiler)
(#e.Success [compiler (case (get module (get@ #.modules compiler))
(#.Some _)
@@ -465,7 +465,7 @@
{#.doc "Looks-up the type of a local variable somewhere in the environment."}
(-> Text (Meta Type))
(function (_ compiler)
- (let [test (: (-> [Text [Type Any]] Bool)
+ (let [test (: (-> [Text [Type Any]] Bit)
(|>> product.left (text/= name)))]
(case (do maybe.Monad<Maybe>
[scope (list.find (function (_ env)
@@ -607,13 +607,13 @@
(wrap imports)))
(def: #export (imported-by? import module)
- (-> Text Text (Meta Bool))
+ (-> Text Text (Meta Bit))
(do Monad<Meta>
[(^slots [#.imports]) (find-module module)]
(wrap (list.any? (text/= import) imports))))
(def: #export (imported? import)
- (-> Text (Meta Bool))
+ (-> Text (Meta Bit))
(let [(^open) Monad<Meta>]
(|> current-module-name
(map find-module) join
@@ -697,7 +697,7 @@
(def: (foo bar baz)
(-> Int Int Int)
(i/+ bar baz))))}
- (case (: (Maybe [Bool Code])
+ (case (: (Maybe [Bit Code])
(case tokens
(^ (list [_ (#.Tag ["" "omit"])]
token))