From 466eda4accdaa2e70b4f16a5dc885dcb23d8dac5 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 1 Dec 2018 23:47:45 +0000 Subject: iodata --- src/any.gleam | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/any.gleam') diff --git a/src/any.gleam b/src/any.gleam index 772078b..30c6cf4 100644 --- a/src/any.gleam +++ b/src/any.gleam @@ -8,7 +8,7 @@ pub external type Any; // doc """ // Convert any Gleam data into `Any` data. // """ -pub external fn from(a) -> Any = 'gleam_any' 'identity'; +pub external fn from(a) -> Any = 'gleam__stdlib' 'identity'; // doc """ // Unsafely cast any type into any other type.o @@ -16,8 +16,4 @@ pub external fn from(a) -> Any = 'gleam_any' '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_any' 'identity'; - -pub fn identity(x) { - x -} +pub external fn unsafeCoerce(a) -> b = 'gleam__stdlib' 'identity'; -- cgit v1.2.3