From f90bd89adba09502b5a7ff188a910750257ef1b0 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 17 Aug 2019 10:35:47 +0100 Subject: Update stdlib for new struct syntax --- gen/src/gleam@any.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gen/src') diff --git a/gen/src/gleam@any.erl b/gen/src/gleam@any.erl index c04aae4..5bd9157 100644 --- a/gen/src/gleam@any.erl +++ b/gen/src/gleam@any.erl @@ -1,7 +1,7 @@ -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, tuple/1, field/2]). +-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, struct2/1, field/2]). from(A) -> gleam__stdlib:identity(A). @@ -36,8 +36,8 @@ list(Any, Decode) -> fun(Capture1) -> gleam@list:traverse(Capture1, Decode) end ). -tuple(A) -> - gleam__stdlib:decode_tuple(A). +struct2(A) -> + gleam__stdlib:decode_struct2(A). field(A, B) -> gleam__stdlib:decode_field(A, B). -- cgit v1.2.3