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

Fix Issue #59 #74

Closed
wants to merge 10 commits into from
Closed

Fix Issue #59 #74

wants to merge 10 commits into from

Conversation

Woody88
Copy link

@Woody88 Woody88 commented Mar 16, 2018

Hi guys,

I have added the instances for SetCookie related to issue #59. Please let me know if anything needs adjusting.

Will be waiting for your feedback. Thanks!

Woodson Delhia and others added 7 commits March 14, 2018 19:39
@@ -530,6 +532,15 @@ instance (ToHttpApiData a, ToHttpApiData b) => ToHttpApiData (Either a b) where
toUrlPiece (Left x) = "left " <> toUrlPiece x
toUrlPiece (Right x) = "right " <> toUrlPiece x

-- |
-- >>> Right c = parseUrlPiece "PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120" :: Either Text SetCookie
Copy link
Collaborator

Choose a reason for hiding this comment

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

let

Copy link
Collaborator

Choose a reason for hiding this comment

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

and please, something else than PHPSESSID :)

stack.yaml Outdated
@@ -9,4 +9,5 @@ flags:

extra-deps:
- attoparsec-iso8601-1.0.0.0
extra-package-dbs: []
- cabal-doctest-1.0.6
extra-package-dbs: []
Copy link
Collaborator

Choose a reason for hiding this comment

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

rather updated a resolver to lts-11.0

Copy link
Author

Choose a reason for hiding this comment

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

I had originally done that but I wasn't too sure of the impact it would have so I opt to just add it to the extra-deps. So, I'm pretty much not too about the difference between adding the dependencies in extra-deps and updating using the resolver.

@@ -52,7 +52,8 @@ library
, time-locale-compat >= 0.1.1.0 && < 0.2
, unordered-containers >= 0.2.6.0 && < 0.3
, uri-bytestring >= 0.1.7 && < 0.4
, uuid-types >= 1.0.2 && <1.1
, uuid-types >= 1.0.2 && < 1.1
, cookie >= 0.4 && < 0.4.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

>= 0.4.4 && <0.4

Copy link
Author

Choose a reason for hiding this comment

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

I changed it to >= 0.4 && < 0.45 or it would complain again asking to set - cookie-0.4.3
in the extra-deps.

@phadej
Copy link
Collaborator

phadej commented Mar 16, 2018

Also, if you can please rebase, don't merge master. Merging unnecessarily clutters history

(EDIT: although, we can just squash & merge)

@Woody88
Copy link
Author

Woody88 commented Mar 16, 2018

Yes, I just rebased it on my local machine. Wasn't too sure what happened.. but learned from it. Thank you. I will proceed with your requested changes!

Copy link
Author

@Woody88 Woody88 left a comment

Choose a reason for hiding this comment

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

Changes are done.

@fizruk fizruk mentioned this pull request Sep 24, 2018
@phadej
Copy link
Collaborator

phadej commented Sep 24, 2018

Merged in #83/#84

@phadej phadej closed this Sep 24, 2018
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.

None yet

2 participants