Skip to content

Commit 2c25417

Browse files
committed
stdlib namespace std -> gleam
1 parent 96c20b8 commit 2c25417

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+934
-892
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@any).
1+
-module(gleam@any).
22
-compile(no_auto_import).
33

44
-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, tuple/1, field/2]).
@@ -31,8 +31,10 @@ list_any(A) ->
3131
gleam__stdlib:decode_list(A).
3232

3333
list(Any, Decode) ->
34-
std@result:then(list_any(Any),
35-
fun(Capture1) -> std@list:traverse(Capture1, Decode) end).
34+
gleam@result:then(list_any(Any),
35+
fun(Capture1) ->
36+
gleam@list:traverse(Capture1, Decode)
37+
end).
3638

3739
tuple(A) ->
3840
gleam__stdlib:decode_tuple(A).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@atom).
1+
-module(gleam@atom).
22
-compile(no_auto_import).
33

44
-export([from_string/1, create_from_string/1, to_string/1]).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@bool).
1+
-module(gleam@bool).
22
-compile(no_auto_import).
33

44
-export([negate/1, compare/2, max/2, min/2, to_int/1]).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@expect).
1+
-module(gleam@expect).
22
-compile(no_auto_import).
33

44
-export([equal/2, not_equal/2, true/1, false/1, is_ok/1, is_error/1, fail/0]).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@float).
1+
-module(gleam@float).
22
-compile(no_auto_import).
33

44
-export([parse/1, to_string/1, ceiling/1, floor/1, round/1, truncate/1]).
@@ -7,7 +7,7 @@ parse(A) ->
77
gleam__stdlib:parse_float(A).
88

99
to_string(F) ->
10-
std@iodata:to_string(std@iodata:from_float(F)).
10+
gleam@iodata:to_string(gleam@iodata:from_float(F)).
1111

1212
ceiling(A) ->
1313
math:ceil(A).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@http).
1+
-module(gleam@http).
22
-compile(no_auto_import).
33

44
-export([]).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@int).
1+
-module(gleam@int).
22
-compile(no_auto_import).
33

44
-export([parse/1, to_string/1, to_base_string/2, compare/2]).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@iodata).
1+
-module(gleam@iodata).
22
-compile(no_auto_import).
33

44
-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]).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@list).
1+
-module(gleam@list).
22
-compile(no_auto_import).
33

44
-export([length/1, reverse/1, is_empty/1, contains/2, head/1, tail/1, filter/2, map/2, index_map/2, traverse/2, drop/2, take/2, new/0, append/2, flatten/1, fold/3, fold_right/3, find/2, all/2, any/2, zip/2, strict_zip/2, intersperse/2, at/2, unique/1, sort/1, range/2, repeat/2, split/2, split_while/2]).
@@ -309,7 +309,7 @@ sort(List) ->
309309
end.
310310

311311
range(Start, Stop) ->
312-
case std@int:compare(Start, Stop) of
312+
case gleam@int:compare(Start, Stop) of
313313
eq ->
314314
[];
315315

gen/src/std@map_dict.erl renamed to gen/src/gleam@map_dict.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-module(std@map_dict).
1+
-module(gleam@map_dict).
22
-compile(no_auto_import).
33

44
-export([size/1, to_list/1, from_list/1, has_key/2, new/0, fetch/2, put/3, map_values/2, keys/1, values/1, filter/2, take/2, merge/2, delete/2, drop/2, update/3, fold/3]).
@@ -64,7 +64,7 @@ delete(Map, Key) ->
6464
erl_delete(Key, Map).
6565

6666
drop(Map, Keys) ->
67-
std@list:fold(Keys, Map, fun(Key, Acc) -> delete(Acc, Key) end).
67+
gleam@list:fold(Keys, Map, fun(Key, Acc) -> delete(Acc, Key) end).
6868

6969
update(Dict, Key, F) ->
7070
case fetch(Dict, Key) of

0 commit comments

Comments
 (0)