Skip to content

Commit

Permalink
Merge pull request #41 from adetokunbo/remove-proxy-settings-default-…
Browse files Browse the repository at this point in the history
…instance

Remove the Default instance of ProxySettings
  • Loading branch information
adetokunbo authored Oct 28, 2024
2 parents 81c2dde + c777c5d commit 042d4c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`wai-middleware-delegate` uses [PVP Versioning][1].

## 0.2.0.0 -- 2024-10-28

* Remove the Default instance of ProxySettings

## 0.1.5.0 -- 2024-10-28

* Upgrade 0.1.4.2 to a minor release
Expand Down
9 changes: 0 additions & 9 deletions src/Network/Wai/Middleware/Delegate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import Data.Conduit
, (.|)
)
import Data.Conduit.Network (appSink, appSource)
import Data.Default (Default (..))
import Data.IORef (newIORef, readIORef, writeIORef)
import Data.Int (Int64)
import Data.Streaming.Network
Expand Down Expand Up @@ -133,14 +132,6 @@ data ProxySettings = ProxySettings
}


{- | This instance is DEPRECATED and will removed in a later release.
please use 'defaultSettings' instead
-}
instance Default ProxySettings where
-- This is DEPRECATED, please use 'defaultSettings' instead
def = defaultSettings


{- | A default 'ProxySettings' that makes simplistic assumptions, e.g, that
target host is @localhost@
-}
Expand Down
5 changes: 2 additions & 3 deletions wai-middleware-delegate.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: wai-middleware-delegate
version: 0.1.5.0
version: 0.2.0.0
synopsis: WAI middleware that delegates handling of requests.
description:
[WAI](http://hackage.haskell.org/package/wai) middleware that intercepts requests
Expand Down Expand Up @@ -40,7 +40,6 @@ library
, case-insensitive ^>=1.2.0.11
, conduit ^>=1.3.0.3
, conduit-extra ^>=1.3.0
, data-default ^>=0.7.1.1
, http-client >=0.5.13 && <0.8
, http-client-tls >=0.3 && <0.4
, http-types >=0.12.1 && <0.13
Expand Down Expand Up @@ -77,7 +76,7 @@ test-suite integration-test
, conduit
, conduit-extra
, crypton-connection >=0.3.1 && < 0.5
, data-default
, data-default ^>=0.7.1.1
, directory >=1.3 && <1.4
, filepath >=1.4 && <1.6
, hspec >=2.1
Expand Down

0 comments on commit 042d4c3

Please sign in to comment.