aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-04-14 17:38:22 +0000
committerLouis Pilfold <louis@lpil.uk>2019-04-14 18:21:24 +0000
commitacbd79a5cfeac7c705bf2c686b2bb1e12205f150 (patch)
tree332372f30be2397fbc3ae78d069c0ef536cba899
parent8cfa606f3834cf7d05f5011bc68295a9d84263dc (diff)
downloadgleam_stdlib-acbd79a5cfeac7c705bf2c686b2bb1e12205f150.tar.gz
gleam_stdlib-acbd79a5cfeac7c705bf2c686b2bb1e12205f150.zip
Document modules
-rw-r--r--gen/src/any.erl4
-rw-r--r--src/any.gleam2
2 files changed, 3 insertions, 3 deletions
diff --git a/gen/src/any.erl b/gen/src/any.erl
index 62f1a77..62be0c6 100644
--- a/gen/src/any.erl
+++ b/gen/src/any.erl
@@ -1,7 +1,7 @@
-module(any).
-compile(no_auto_import).
--export([from/1, unsafeCoerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, tuple/1, field/2]).
+-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, tuple/1, field/2]).
list_module() ->
list.
@@ -9,7 +9,7 @@ list_module() ->
from(A) ->
gleam__stdlib:identity(A).
-unsafeCoerce(A) ->
+unsafe_coerce(A) ->
gleam__stdlib:identity(A).
string(A) ->
diff --git a/src/any.gleam b/src/any.gleam
index a2fa418..a4ef0d4 100644
--- a/src/any.gleam
+++ b/src/any.gleam
@@ -21,7 +21,7 @@ pub external fn from(a) -> Any = "gleam__stdlib" "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__stdlib" "identity";
+pub external fn unsafe_coerce(a) -> b = "gleam__stdlib" "identity";
pub external fn string(Any) -> Result(String, String)
= "gleam__stdlib" "decode_string"