I was looking through the Gleam docs and it mentions modules, but not much about creating your own modules. I'm looking to create a module for myself so that I can encapsulate some code and write specific unit tests for that code. My first attempt looks something like this:
fancy/ (root)
compiler/
lib/
lexer/
lexer.gleam
src/
compiler.gleam
The problem is that I can't quite call my module from the compiler.gleam file. So i'm wondering if modules should all live in the src directory or if there's a convention to also have something like a lib (I believe Rust does a src and lib?)