aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-06-02 19:48:56 +0100
committerLouis Pilfold <louis@lpil.uk>2019-06-02 21:12:59 +0100
commit96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (patch)
tree30546669b2dd307ae933f7d124c4edd4647a8ca7 /src
parent5a1f3494eb9517a7b7a332cb74dd10a6a7d32d31 (diff)
downloadgleam_stdlib-96c20b8ebf8420fbba75c97fa08eaeb34e8dc394.tar.gz
gleam_stdlib-96c20b8ebf8420fbba75c97fa08eaeb34e8dc394.zip
Import variables can have their name specified
Diffstat (limited to 'src')
-rw-r--r--src/std/any.gleam8
1 files changed, 2 insertions, 6 deletions
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)