aboutsummaryrefslogtreecommitdiff
path: root/source/lux/data/id.lux
diff options
context:
space:
mode:
Diffstat (limited to 'source/lux/data/id.lux')
-rw-r--r--source/lux/data/id.lux13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/lux/data/id.lux b/source/lux/data/id.lux
index 3ad6b056b..d8bb30a3d 100644
--- a/source/lux/data/id.lux
+++ b/source/lux/data/id.lux
@@ -13,20 +13,19 @@
## [Types]
(deftype #export (Id a)
- (| (#Id a)))
+ a)
## [Structures]
(defstruct #export Id/Functor (Functor Id)
(def (F;map f fa)
- (let [(#Id a) fa]
- (#Id (f a)))))
+ (f fa)))
(defstruct #export Id/Monad (Monad Id)
(def M;_functor Id/Functor)
- (def (M;wrap a) (#Id a))
- (def (M;join mma) (let [(#Id ma) mma] ma)))
+ (def M;wrap id)
+ (def M;join id))
(defstruct #export Id/CoMonad (CoMonad Id)
(def CM;_functor Id/Functor)
- (def (CM;unwrap wa) (let [(#Id a) wa] a))
- (def (CM;split wa) (#Id wa)))
+ (def CM;unwrap id)
+ (def CM;split id))