aboutsummaryrefslogtreecommitdiff
path: root/gen/src
diff options
context:
space:
mode:
Diffstat (limited to 'gen/src')
-rw-r--r--gen/src/gleam@any.erl22
-rw-r--r--gen/src/gleam@atom.erl6
-rw-r--r--gen/src/gleam@expect.erl12
-rw-r--r--gen/src/gleam@float.erl2
-rw-r--r--gen/src/gleam@int.erl2
-rw-r--r--gen/src/gleam@iodata.erl14
-rw-r--r--gen/src/gleam@list.erl10
-rw-r--r--gen/src/gleam@map.erl2
8 files changed, 35 insertions, 35 deletions
diff --git a/gen/src/gleam@any.erl b/gen/src/gleam@any.erl
index 4b2d17d..b55ce9f 100644
--- a/gen/src/gleam@any.erl
+++ b/gen/src/gleam@any.erl
@@ -4,31 +4,31 @@
-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, pair/1, field/2]).
from(A) ->
- gleam__stdlib:identity(A).
+ gleam_stdlib:identity(A).
unsafe_coerce(A) ->
- gleam__stdlib:identity(A).
+ gleam_stdlib:identity(A).
string(A) ->
- gleam__stdlib:decode_string(A).
+ gleam_stdlib:decode_string(A).
int(A) ->
- gleam__stdlib:decode_int(A).
+ gleam_stdlib:decode_int(A).
float(A) ->
- gleam__stdlib:decode_float(A).
+ gleam_stdlib:decode_float(A).
atom(A) ->
- gleam__stdlib:decode_atom(A).
+ gleam_stdlib:decode_atom(A).
bool(A) ->
- gleam__stdlib:decode_bool(A).
+ gleam_stdlib:decode_bool(A).
thunk(A) ->
- gleam__stdlib:decode_thunk(A).
+ gleam_stdlib:decode_thunk(A).
list_any(A) ->
- gleam__stdlib:decode_list(A).
+ gleam_stdlib:decode_list(A).
list(Any, Decode) ->
gleam@result:then(
@@ -37,7 +37,7 @@ list(Any, Decode) ->
).
pair(A) ->
- gleam__stdlib:decode_pair(A).
+ gleam_stdlib:decode_pair(A).
field(A, B) ->
- gleam__stdlib:decode_field(A, B).
+ gleam_stdlib:decode_field(A, B).
diff --git a/gen/src/gleam@atom.erl b/gen/src/gleam@atom.erl
index 83392aa..1150544 100644
--- a/gen/src/gleam@atom.erl
+++ b/gen/src/gleam@atom.erl
@@ -4,10 +4,10 @@
-export([from_string/1, create_from_string/1, to_string/1]).
from_string(A) ->
- gleam__stdlib:atom_from_string(A).
+ gleam_stdlib:atom_from_string(A).
create_from_string(A) ->
- gleam__stdlib:atom_create_from_string(A).
+ gleam_stdlib:atom_create_from_string(A).
to_string(A) ->
- gleam__stdlib:atom_to_string(A).
+ gleam_stdlib:atom_to_string(A).
diff --git a/gen/src/gleam@expect.erl b/gen/src/gleam@expect.erl
index 72a4389..eb1c3d4 100644
--- a/gen/src/gleam@expect.erl
+++ b/gen/src/gleam@expect.erl
@@ -4,22 +4,22 @@
-export([equal/2, not_equal/2, true/1, false/1, is_ok/1, is_error/1, fail/0]).
equal(A, B) ->
- gleam__stdlib:expect_equal(A, B).
+ gleam_stdlib:expect_equal(A, B).
not_equal(A, B) ->
- gleam__stdlib:expect_not_equal(A, B).
+ gleam_stdlib:expect_not_equal(A, B).
true(A) ->
- gleam__stdlib:expect_true(A).
+ gleam_stdlib:expect_true(A).
false(A) ->
- gleam__stdlib:expect_false(A).
+ gleam_stdlib:expect_false(A).
is_ok(A) ->
- gleam__stdlib:expect_is_ok(A).
+ gleam_stdlib:expect_is_ok(A).
is_error(A) ->
- gleam__stdlib:expect_is_error(A).
+ gleam_stdlib:expect_is_error(A).
fail() ->
true(false).
diff --git a/gen/src/gleam@float.erl b/gen/src/gleam@float.erl
index 1d19fc7..6aab56b 100644
--- a/gen/src/gleam@float.erl
+++ b/gen/src/gleam@float.erl
@@ -4,7 +4,7 @@
-export([parse/1, to_string/1, compare/2, ceiling/1, floor/1, round/1, truncate/1]).
parse(A) ->
- gleam__stdlib:parse_float(A).
+ gleam_stdlib:parse_float(A).
to_string(F) ->
gleam@iodata:to_string(gleam@iodata:from_float(F)).
diff --git a/gen/src/gleam@int.erl b/gen/src/gleam@int.erl
index 49641a6..ea97785 100644
--- a/gen/src/gleam@int.erl
+++ b/gen/src/gleam@int.erl
@@ -4,7 +4,7 @@
-export([parse/1, to_string/1, to_base_string/2, compare/2]).
parse(A) ->
- gleam__stdlib:parse_int(A).
+ gleam_stdlib:parse_int(A).
to_string(A) ->
erlang:integer_to_binary(A).
diff --git a/gen/src/gleam@iodata.erl b/gen/src/gleam@iodata.erl
index cf7942e..b70ad78 100644
--- a/gen/src/gleam@iodata.erl
+++ b/gen/src/gleam@iodata.erl
@@ -4,25 +4,25 @@
-export([prepend/2, append/2, prepend_iodata/2, append_iodata/2, from_strings/1, concat/1, new/1, to_string/1, byte_size/1, from_float/1, lowercase/1, uppercase/1, reverse/1, split/2, replace/3, is_equal/2, is_empty/1]).
prepend(A, B) ->
- gleam__stdlib:iodata_prepend(A, B).
+ gleam_stdlib:iodata_prepend(A, B).
append(A, B) ->
- gleam__stdlib:iodata_append(A, B).
+ gleam_stdlib:iodata_append(A, B).
prepend_iodata(A, B) ->
- gleam__stdlib:iodata_prepend(A, B).
+ gleam_stdlib:iodata_prepend(A, B).
append_iodata(A, B) ->
- gleam__stdlib:iodata_append(A, B).
+ gleam_stdlib:iodata_append(A, B).
from_strings(A) ->
- gleam__stdlib:identity(A).
+ gleam_stdlib:identity(A).
concat(A) ->
- gleam__stdlib:identity(A).
+ gleam_stdlib:identity(A).
new(A) ->
- gleam__stdlib:identity(A).
+ gleam_stdlib:identity(A).
to_string(A) ->
erlang:iolist_to_binary(A).
diff --git a/gen/src/gleam@list.erl b/gen/src/gleam@list.erl
index 324395f..f5b8f6d 100644
--- a/gen/src/gleam@list.erl
+++ b/gen/src/gleam@list.erl
@@ -24,7 +24,7 @@ contains(List, Elem) ->
head(List) ->
case List of
[] ->
- {error, {}};
+ {error, nil};
[X | _] ->
{ok, X}
@@ -33,7 +33,7 @@ head(List) ->
tail(List) ->
case List of
[] ->
- {error, {}};
+ {error, nil};
[_ | Xs] ->
{ok, Xs}
@@ -172,7 +172,7 @@ fold_right(List, Acc, Fun) ->
find(Haystack, F) ->
case Haystack of
[] ->
- {error, {}};
+ {error, nil};
[X | Rest] ->
case F(X) of
@@ -250,12 +250,12 @@ intersperse(List, Elem) ->
at(List, I) ->
case I < 0 of
true ->
- {error, {}};
+ {error, nil};
false ->
case List of
[] ->
- {error, {}};
+ {error, nil};
[X | Rest] ->
case I =:= 0 of
diff --git a/gen/src/gleam@map.erl b/gen/src/gleam@map.erl
index b93f8bd..96d8b83 100644
--- a/gen/src/gleam@map.erl
+++ b/gen/src/gleam@map.erl
@@ -22,7 +22,7 @@ new() ->
maps:new().
fetch(A, B) ->
- gleam__stdlib:map_fetch(A, B).
+ gleam_stdlib:map_fetch(A, B).
erl_put(A, B, C) ->
maps:put(A, B, C).