packages feed

rest-core 0.35 → 0.35.1

raw patch · 3 files changed

+7/−4 lines, 3 files

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +#### 0.35.1++* Remove unneeded constraint from `domainReason`.+ ## 0.35  * Change input/output dictionaries to indicate separately if there are
rest-core.cabal view
@@ -1,5 +1,5 @@ name:                rest-core-version:             0.35+version:             0.35.1 description:         Rest API library. synopsis:            Rest API library. maintainer:          code@silk.co
src/Rest/Error.hs view
@@ -39,9 +39,8 @@ eitherToStatus (Right e) = Success e  -- | Wrap your custom error type in a 'Reason'.--- This requires the ToResponseCode dictionary to pick a response code when--- the error is served.-domainReason :: ToResponseCode a => a -> Reason a++domainReason :: a -> Reason a domainReason = CustomReason . DomainReason  infixl 3 >|<