# A Simple Example of Calling an Elixir Library from Gleam

DevFeed: [A Simple Example of Calling an Elixir Library from Gleam](<https://devfeed.tech/articles/a-simple-example-of-calling-an-elixir-library-from-gleam-52809.md>)

Original publisher: [Read original article](<https://mtlynch.io/notes/gleam-call-elixir/>)

Author: Michael Lynch

Published: 2025-06-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [Mtlynch](<https://devfeed.tech/sources/mtlynch-io.md>)

Topics: [Elixir](<https://devfeed.tech/topics/elixir.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>), [Library](<https://devfeed.tech/topics/library.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Nix](<https://devfeed.tech/topics/nix.md>), [CSV](<https://devfeed.tech/topics/csv.md>)

Tags: [beginner](<https://devfeed.tech/tags/beginner.md>), [code](<https://devfeed.tech/tags/code.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [erlang](<https://devfeed.tech/tags/erlang.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [library](<https://devfeed.tech/tags/library.md>), [nix](<https://devfeed.tech/tags/nix.md>)

## AI overview

A beginner-oriented example of calling an Elixir library from a Gleam project. It covers installing Gleam, Erlang, and Elixir dependencies, creating a project, working around a package-version bug, installing a CSV package, and exploring its API with Elixir's interactive shell.

## Source excerpt

I've been experimenting a bit with Gleam and Elixir lately as part of my search for a new programming language. One of Gleam's flagship features is that it can call Elixir code and libraries, but I couldn't find any examples of how to do that. I wrote a simple example of calling an Elixir library from a Gleam project, based on my beginner's understanding of the Gleam/Elixir/Erlang ecosystem. Install dependencies For this example, I'm using