aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/time/instant.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/time/instant.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/lux/time/instant.lux b/stdlib/source/lux/time/instant.lux
index 1285e50e6..381820058 100644
--- a/stdlib/source/lux/time/instant.lux
+++ b/stdlib/source/lux/time/instant.lux
@@ -14,17 +14,17 @@
[maybe]
(coll [list "L/" Fold<List> Functor<List>]
[sequence #+ Sequence sequence "sequence/" Functor<Sequence> Fold<Sequence>]))
- (type opaque))
+ (type abstract))
(// [duration "duration/" Order<Duration>]
[date]))
-(opaque: #export Instant
+(abstract: #export Instant
{#.doc "Instant is defined as milliseconds since the epoch."}
Int
(def: #export from-millis
(-> Int Instant)
- (|>> @opaque))
+ (|>> @abstract))
(def: #export to-millis
(-> Instant Int)
@@ -36,7 +36,7 @@
(def: #export (shift duration instant)
(-> duration.Duration Instant Instant)
- (@opaque (i/+ (duration.to-millis duration) (@repr instant))))
+ (@abstract (i/+ (duration.to-millis duration) (@repr instant))))
(def: #export (relative instant)
(-> Instant duration.Duration)
@@ -44,7 +44,7 @@
(def: #export (absolute offset)
(-> duration.Duration Instant)
- (|> offset duration.to-millis @opaque))
+ (|> offset duration.to-millis @abstract))
(struct: #export _ (Eq Instant)
(def: (= param subject)
@@ -63,7 +63,7 @@
(def: order Order<Instant>)
(do-template [<name>]
[(def: <name>
- (|>> @repr (:: number.Enum<Int> <name>) @opaque))]
+ (|>> @repr (:: number.Enum<Int> <name>) @abstract))]
[succ] [pred]
))