@@ -11,35 +11,35 @@ pub external type Any;
11
11
12
12
// Convert any Gleam data into `Any` data.
13
13
//
14
- pub external fn from(a) -> Any = "gleam__stdlib " "identity";
14
+ pub external fn from(a) -> Any = "gleam_stdlib " "identity";
15
15
16
16
// Unsafely cast any type into any other type.
17
17
//
18
18
// This is an escape hatch for the type system that may be useful when wrapping
19
19
// native Erlang APIs. It is to be used as a last measure only.
20
20
//
21
- pub external fn unsafe_coerce(a) -> b = "gleam__stdlib " "identity";
21
+ pub external fn unsafe_coerce(a) -> b = "gleam_stdlib " "identity";
22
22
23
23
pub external fn string(Any) -> Result(String, String)
24
- = "gleam__stdlib " "decode_string"
24
+ = "gleam_stdlib " "decode_string"
25
25
26
26
pub external fn int(Any) -> Result(Int, String)
27
- = "gleam__stdlib " "decode_int"
27
+ = "gleam_stdlib " "decode_int"
28
28
29
29
pub external fn float(Any) -> Result(Float, String)
30
- = "gleam__stdlib " "decode_float"
30
+ = "gleam_stdlib " "decode_float"
31
31
32
32
pub external fn atom(Any) -> Result(atom.Atom, String)
33
- = "gleam__stdlib " "decode_atom"
33
+ = "gleam_stdlib " "decode_atom"
34
34
35
35
pub external fn bool(Any) -> Result(Bool, String)
36
- = "gleam__stdlib " "decode_bool"
36
+ = "gleam_stdlib " "decode_bool"
37
37
38
38
pub external fn thunk(Any) -> Result(fn() -> Any, String)
39
- = "gleam__stdlib " "decode_thunk"
39
+ = "gleam_stdlib " "decode_thunk"
40
40
41
- external fn list_any(Any) -> Result(List(Any), String) =
42
- "gleam__stdlib " "decode_list"
41
+ external fn list_any(Any) -> Result(List(Any), String)
42
+ = "gleam_stdlib " "decode_list"
43
43
44
44
pub fn list(any, decode) {
45
45
any
@@ -48,7 +48,7 @@ pub fn list(any, decode) {
48
48
}
49
49
50
50
pub external fn pair(Any) -> Result(pair.Pair(Any, Any), String)
51
- = "gleam__stdlib " "decode_pair"
51
+ = "gleam_stdlib " "decode_pair"
52
52
53
53
pub external fn field(Any, a) -> Result(Any, String)
54
- = "gleam__stdlib " "decode_field"
54
+ = "gleam_stdlib " "decode_field"
0 commit comments