diff options
author | Louis Pilfold <louis@lpil.uk> | 2018-11-04 21:02:47 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2018-11-04 21:02:47 +0000 |
commit | 09dddb00e6c77582282293589022037e430abf04 (patch) | |
tree | b7c7ccc4686c6408a548c036657ca5078cd2b70f | |
parent | c85b60fb29c95fc501ae2b56e3fb716d772e59e0 (diff) | |
download | gleam_stdlib-09dddb00e6c77582282293589022037e430abf04.tar.gz gleam_stdlib-09dddb00e6c77582282293589022037e430abf04.zip |
Permit new var as return for external fn
-rw-r--r-- | src/any.gleam | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/any.gleam b/src/any.gleam index 7721ad8..22cf9ee 100644 --- a/src/any.gleam +++ b/src/any.gleam @@ -1,24 +1,24 @@ -doc """ -`Any` data is data that we don't know the type of yet. -We likely get data like this from interop with Erlang, or from -IO with the outside world. -""" +// doc """ +// `Any` data is data that we don't know the type of yet. +// We likely get data like this from interop with Erlang, or from +// IO with the outside world. +// """ pub external type Any ; -doc """ -Convert any Gleam data into `Any` data. -""" +// doc """ +// Convert any Gleam data into `Any` data. +// """ pub external fn from(a) -> Any = 'gleam_foreign' 'identity' -doc """ -Unsafely cast any type into any other type.o +// doc """ +// 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. -""" +// 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' -fn identity(x) { +pub fn identity(x) { x } |