diff options
author | Eduardo Julian | 2019-03-30 21:45:45 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-03-30 21:45:45 -0400 |
commit | 118895081d97279a796cc704e6c23bf92ed79e5e (patch) | |
tree | 1ea654e3f913bfc5f978bba46620c535e7a4a7bc /stdlib/source/lux/type/unit.lux | |
parent | 5009bfaa56119a58e675a1e6008623790b54cc1c (diff) |
Re-named "do-template" to "template".
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/type/unit.lux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/type/unit.lux b/stdlib/source/lux/type/unit.lux index ab971a4d7..d28f3e841 100644 --- a/stdlib/source/lux/type/unit.lux +++ b/stdlib/source/lux/type/unit.lux @@ -58,7 +58,7 @@ (-> Int Pure) in) -(do-template [<name> <tag>] +(template [<name> <tag>] [(def: <name> (-> Text Text) (|>> (format "{" kind "@" module "}") @@ -116,7 +116,7 @@ [(~ (code.nat numerator)) (~ (code.nat denominator))]))) )))) -(do-template [<name> <op>] +(template [<name> <op>] [(def: #export (<name> param subject) (All [unit] (-> (Qty unit) (Qty unit) (Qty unit))) (|> subject out (<op> (out param)) in))] @@ -172,7 +172,7 @@ (`` (structure: #export order (All [unit] (Order (Qty unit))) (def: &equivalence ..equivalence) - (~~ (do-template [<name> <func>] + (~~ (template [<name> <func>] [(def: (<name> reference sample) (<func> (out reference) (out sample)))] |