Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wisp.gleam, fix double-import #48

Closed
wants to merge 1 commit into from
Closed

Update wisp.gleam, fix double-import #48

wants to merge 1 commit into from

Conversation

matt-savvy
Copy link
Contributor

Fixes a bug that was introduced by 23d1477, maybe a bug in wisp fix?

Response is being doubly imported and aliased.

$ gleam --version
gleam 0.32.1

$ gleam build
  Compiling wisp
error: Duplicate type definition
   ┌─ ../dev/wisp/src/wisp.gleam:12:3
   │
12 │   type Response as HttpResponse, Response as HttpResponse,
   │   ^^^^^^^^^^^^^                  ^^^^^^^^ Redefined here
   │   │
   │   First defined here

The type `HttpResponse` has been defined multiple times.
Names in a Gleam module must be unique so one will need to be renamed.

This was introduced by 23d1477, maybe a bug in `wisp fix`?
@matt-savvy
Copy link
Contributor Author

Actually, this turns out to be correct

@matt-savvy matt-savvy closed this Nov 5, 2023
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.

1 participant