diff options
Diffstat (limited to 'gen/src')
-rw-r--r-- | gen/src/gleam@any.erl | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gen/src/gleam@any.erl b/gen/src/gleam@any.erl deleted file mode 100644 index 2cedd83..0000000 --- a/gen/src/gleam@any.erl +++ /dev/null @@ -1,40 +0,0 @@ --module(gleam@any). --compile(no_auto_import). - --export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, field/2]). - -from(A) -> - gleam_stdlib:identity(A). - -unsafe_coerce(A) -> - gleam_stdlib:identity(A). - -string(A) -> - gleam_stdlib:decode_string(A). - -int(A) -> - gleam_stdlib:decode_int(A). - -float(A) -> - gleam_stdlib:decode_float(A). - -atom(A) -> - gleam_stdlib:decode_atom(A). - -bool(A) -> - gleam_stdlib:decode_bool(A). - -thunk(A) -> - gleam_stdlib:decode_thunk(A). - -list_any(A) -> - gleam_stdlib:decode_list(A). - -list(Any, DecoderType) -> - gleam@result:then( - list_any(Any), - fun(Capture1) -> gleam@list:traverse(Capture1, DecoderType) end - ). - -field(A, B) -> - gleam_stdlib:decode_field(A, B). |