aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2018-11-22 01:22:32 +0000
committerLouis Pilfold <louis@lpil.uk>2018-11-22 01:22:32 +0000
commitfd7dc023cbb512d51c5ac7a45271d1625fa945af (patch)
tree6971ba7a96d2fc97e35c249f19466136df86fb69 /src
parent7675e45b733608aa21dd590c78e268e28087676c (diff)
downloadgleam_stdlib-fd7dc023cbb512d51c5ac7a45271d1625fa945af.tar.gz
gleam_stdlib-fd7dc023cbb512d51c5ac7a45271d1625fa945af.zip
Correct any external fns
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