aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorEduardo Julian2016-12-27 07:20:16 -0400
committerEduardo Julian2016-12-27 07:20:16 -0400
commit47c956b3d436094f6d9fb3ad7987d7ae44889ce5 (patch)
tree29363e1595ca79f63d665c9fbb172ab2ae948981 /stdlib
parent63dad14cec936087a2d59074494325b0118cab83 (diff)
- Added easy number formatters for binary, octal and hexadecimal numbers at lux/data/text/format.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/source/lux/data/text/format.lux3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/source/lux/data/text/format.lux b/stdlib/source/lux/data/text/format.lux
index 95dd10914..fee9c576c 100644
--- a/stdlib/source/lux/data/text/format.lux
+++ b/stdlib/source/lux/data/text/format.lux
@@ -46,6 +46,9 @@
[%ident Ident (:: ident;Codec<Text,Ident> encode)]
[%ast AST ast;to-text]
[%type Type type;to-text]
+ [%bin Nat (:: number;Binary@Codec<Text,Nat> encode)]
+ [%oct Nat (:: number;Octal@Codec<Text,Nat> encode)]
+ [%hex Nat (:: number;Hex@Codec<Text,Nat> encode)]
)
(def: #export (%list formatter)