From 50888726525034dca7cfadaf44bc0e00b23d6b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Tue, 29 Oct 2024 01:34:10 +0100 Subject: [PATCH] lol --- .../core/src/main/scala/playground/std/StdlibRuntime.scala | 6 +++++- modules/core/src/main/smithy/std.smithy | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/core/src/main/scala/playground/std/StdlibRuntime.scala b/modules/core/src/main/scala/playground/std/StdlibRuntime.scala index d22e4b43..e01f11a2 100644 --- a/modules/core/src/main/scala/playground/std/StdlibRuntime.scala +++ b/modules/core/src/main/scala/playground/std/StdlibRuntime.scala @@ -23,7 +23,11 @@ object StdlibRuntime { new playground.std.Random[F] { def nextUUID( - ): F[NextUUIDOutput] = UUIDGen[F].randomUUID.map(NextUUIDOutput(_)) + ): F[NextUUIDOutput] = UUIDGen[F] + .randomUUID + .map(_.toString()) + .map(UUID(_)) + .map(NextUUIDOutput(_)) } diff --git a/modules/core/src/main/smithy/std.smithy b/modules/core/src/main/smithy/std.smithy index 6baf4161..59a721de 100644 --- a/modules/core/src/main/smithy/std.smithy +++ b/modules/core/src/main/smithy/std.smithy @@ -2,12 +2,12 @@ $version: "2" namespace playground.std -use alloy#UUID - @trait(selector: "service") @protocolDefinition structure stdlib {} +string UUID + @stdlib @documentation("A standard library service providing random generators of data.") service Random {