Closed xhh closed 3 months ago
Code:
import gleam/io import gleam/string.{inspect} import snag.{Result, Snag} pub fn main() { let r: snag.Snag = snag.new("hello") io.println(inspect(r)) }
Error:
Unknown module field Did you mean `error`? The module `snag` does not have a `Result` value.
OS: Windows 11
Hello! The syntax is import snag.{type Result}
import snag.{type Result}
Let's improve this error message.
Ah, thanks! Another issue of mine can be closed as well then.
I think this is fixed in Gleam v1.2.0 @lpil ?
Yes, thank you
Code:
Error:
OS: Windows 11