gleam-lang / cowboy

🤠 A Gleam HTTP service adapter for the Cowboy web server
Apache License 2.0
67 stars 13 forks source link

Support Gleam v0.28.0 #17

Open J3RN opened 1 year ago

J3RN commented 1 year ago

This project currently does not support the latest Gleam versions because it contains the deprecated (and now removed) try syntax. Project compilation fails with this error:

error: Syntax error
    ┌─ /home/j3rn/Code/gleam-lang/cowboy/main/build/packages/gleam_stdlib/src/gleam/list.gleam:667:23
    │
667 │       try accumulator = fun(accumulator, first)
    │                       ^ There must be a 'let' to bind variable to value

Hint: Use let for binding
See: https://gleam.run/book/tour/let-bindings

I'm hoping to resolve this now, but in the event I don't, figured I'd let folks know :grin: