-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the guessApproot function (pinging @gregwebs)
- Loading branch information
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: yesod-core | ||
version: 1.4.15 | ||
version: 1.4.16 | ||
license: MIT | ||
license-file: LICENSE | ||
author: Michael Snoyman <[email protected]> | ||
|
@@ -25,7 +25,7 @@ library | |
build-depends: base >= 4.3 && < 5 | ||
, time >= 1.1.4 | ||
, wai >= 3.0 | ||
, wai-extra >= 3.0.5 | ||
, wai-extra >= 3.0.7 | ||
, bytestring >= 0.9.1.4 | ||
, text >= 0.7 | ||
, template-haskell | ||
|
5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am just wondering whether a generalisation is worthwhile: I have a situation where I have written almost exactly this, but with type
(site -> Text) -> Approot site
, making it fall back in effect to ApprootMaster. Or would the extra parameter be too obtrusive in other use cases?5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's funny, I'd actually been considering a
guessApprootOr
function with a signature just like that. I think there's room for both. To bikeshed slightly on the signature, what about:or
so that no generality is lost.
5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be even better, and actually I like
Approot site -> Approot site
.5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to PR that as well? Should be straight-forward.
5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will do!
5d0a456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!