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

Use "pathParam" instead of "captureParam" to refer to path parameters #346

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

fumieval
Copy link
Collaborator

Fixes #344

@fumieval fumieval requested a review from ocramz October 30, 2023 07:04
Copy link
Collaborator

@ocramz ocramz left a comment

Choose a reason for hiding this comment

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

Great! Could you add a changelog entry as well?

@@ -156,7 +156,7 @@ type Param = (Text, Text)
type File = (Text, FileInfo LBS8.ByteString)

data ActionEnv = Env { envReq :: Request
, envCaptureParams :: [Param]
, envPathParams :: [Param]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a breaking change (since the Types module is exposed) and should be marked as such.

@ocramz
Copy link
Collaborator

ocramz commented Oct 30, 2023

@fumieval the example programs in the README and in the Cabal file should be updated too then.

@fumieval
Copy link
Collaborator Author

fumieval commented Oct 31, 2023

the example programs in the README and in the Cabal file should be updated too then.

Right, fixed!

@fumieval fumieval requested a review from ocramz November 2, 2023 09:09
Copy link
Collaborator

@ocramz ocramz left a comment

Choose a reason for hiding this comment

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

👍

@fumieval fumieval merged commit 3dd5394 into master Nov 5, 2023
5 checks passed
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.

The name captureParam is a bit strange
2 participants