From 96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 2 Jun 2019 19:48:56 +0100 Subject: Import variables can have their name specified --- src/std/any.gleam | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/std') diff --git a/src/std/any.gleam b/src/std/any.gleam index c5c4a62..ac902cd 100644 --- a/src/std/any.gleam +++ b/src/std/any.gleam @@ -1,11 +1,7 @@ -import std/list +import std/list as list_mod import std/atom import std/result -fn list_module() { - list -} - // `Any` data is data that we don"t know the type of yet. // We likely get data like this from interop with Erlang, or from // IO with the outside world. @@ -47,7 +43,7 @@ external fn list_any(Any) -> Result(List(Any), String) = pub fn list(any, decode) { any |> list_any - |> result:then(_, list_module():traverse(_, decode)) + |> result:then(_, list_mod:traverse(_, decode)) } pub external fn tuple(Any) -> Result({Any, Any}, String) -- cgit v1.2.3