I think the error message we get when trying to access a module function that doesn't exist could be improved. Right now it looks like this:
Calling it "module field" strikes me as a bit odd, I've never heard this term before. Maybe it could be worded a bit differently:
+error: Unknown module function
-error: Unknown module field
┌─ /Users/giacomocavalieri/Documents/progetti/ssg/build/packages/jot/src/jot.gleam:20:11
│
20 │ dict.update(attributes, key, fn(previous) {
│ ^^^^^^^
+The module `gleam/dict` does not have a `update` function.
-The module `gleam/dict` does not have a `update` field.
I think the error message we get when trying to access a module function that doesn't exist could be improved. Right now it looks like this:
Calling it "module field" strikes me as a bit odd, I've never heard this term before. Maybe it could be worded a bit differently: