aboutsummaryrefslogtreecommitdiff
path: root/src/Foreign.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/Foreign.gleam')
-rw-r--r--src/Foreign.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Foreign.gleam b/src/Foreign.gleam
index ccd71f4..1be59d0 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.identity
+external new : fn(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.identity
+external unsafeCoerce : fn(a) { b } = :gleam :identity