Skip to content

Update HTTP package to new zig-based roc compiler syntax.#1

Merged
lukewilliamboswell merged 1 commit into
roc-lang:mainfrom
imclerran:main
May 30, 2026
Merged

Update HTTP package to new zig-based roc compiler syntax.#1
lukewilliamboswell merged 1 commit into
roc-lang:mainfrom
imclerran:main

Conversation

@imclerran
Copy link
Copy Markdown
Contributor

@imclerran imclerran commented May 30, 2026

No description provided.

Comment thread package/Method.roc
@@ -0,0 +1,2 @@
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
Method := [OPTIONS, GET, POST, PUT, DELETE, HEAD, TRACE, CONNECT, PATCH, Unknown(Str)] No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about nesting this under Request? It would be Http.Request.Method then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it seems like the compiler doesn't currently support nested types... I'm going to open an issue for this.

#beginners > Type module which depends on a type defined within?

Copy link
Copy Markdown
Contributor

@lukewilliamboswell lukewilliamboswell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to add some things in a follow up. Thank you @imclerran for making a start on this.

@lukewilliamboswell lukewilliamboswell merged commit 7d5905c into roc-lang:main May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants