aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2018-08-01 19:21:48 +0100
committerLouis Pilfold <louis@lpil.uk>2018-08-01 19:21:55 +0100
commit817d9006dd4aaa1793fee68089ef53f9e188af3f (patch)
tree492d888b30448995fbf9fdab3c96b34f5f598bd8
parent8c1195bbbe262c55b1a0d693a56b6bbe35c5554a (diff)
downloadgleam_stdlib-817d9006dd4aaa1793fee68089ef53f9e188af3f.tar.gz
gleam_stdlib-817d9006dd4aaa1793fee68089ef53f9e188af3f.zip
Infer simple constant types
-rw-r--r--src/Foreign.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Foreign.gleam b/src/Foreign.gleam
index 4a74c04..ccd71f4 100644
--- a/src/Foreign.gleam
+++ b/src/Foreign.gleam
@@ -12,7 +12,7 @@ external type Foreign
doc """
Convert any Gleam data into Foreign data.
"""
-external new : |a| -> Foreign = :gleam_native.identity
+external new : |a| -> Foreign = :gleam.identity
doc """
Unsafely cast any type into any other type.o
@@ -20,4 +20,4 @@ Unsafely cast any type into any other type.o
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.
"""
-external unsafeCoerce : |a| -> b = :gleam_native.identity
+external unsafeCoerce : |a| -> b = :gleam.identity