aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/any.gleam7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/any.gleam b/src/any.gleam
index 22cf9ee..772078b 100644
--- a/src/any.gleam
+++ b/src/any.gleam
@@ -3,13 +3,12 @@
// We likely get data like this from interop with Erlang, or from
// IO with the outside world.
// """
-pub external type Any
-;
+pub external type Any;
// doc """
// Convert any Gleam data into `Any` data.
// """
-pub external fn from(a) -> Any = 'gleam_foreign' 'identity'
+pub external fn from(a) -> Any = 'gleam_any' 'identity';
// doc """
// Unsafely cast any type into any other type.o
@@ -17,7 +16,7 @@ pub external fn from(a) -> Any = 'gleam_foreign' 'identity'
// This is an escape hatch for the type system that may be useful when wrapping
// native Erlang APIs. It is to be used as a last measure only.
// """
-pub external fn unsafeCoerce(a) -> b = 'gleam_foreign' 'identity'
+pub external fn unsafeCoerce(a) -> b = 'gleam_any' 'identity';
pub fn identity(x) {
x