om-doh 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+12/−15 lines, 2 filesdep ~basedep ~base64dep ~bytestringPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, base64, bytestring, http-api-data, resolv, servant, servant-server, text
API changes (from Hackage documentation)
- OM.DoH.Api: instance Servant.API.ContentTypes.MimeRender OM.DoH.Api.DnsMsgCT Data.ByteString.Internal.ByteString
- OM.DoH.Api: instance Servant.API.ContentTypes.MimeUnrender OM.DoH.Api.DnsMsgCT Data.ByteString.Internal.ByteString
+ OM.DoH.Api: instance Servant.API.ContentTypes.MimeRender OM.DoH.Api.DnsMsgCT Data.ByteString.Internal.Type.ByteString
+ OM.DoH.Api: instance Servant.API.ContentTypes.MimeUnrender OM.DoH.Api.DnsMsgCT Data.ByteString.Internal.Type.ByteString
- OM.DoH.Server: server :: MonadIO m => DoHApi (AsServerT m)
+ OM.DoH.Server: server :: forall (m :: Type -> Type). MonadIO m => DoHApi (AsServerT m)
Files
- om-doh.cabal +10/−13
- src/OM/DoH/Api.hs +2/−2
om-doh.cabal view
@@ -1,8 +1,6 @@--- Initial om-doh.cabal generated by cabal init. For further --- documentation, see http://haskell.org/cabal/users-guide/-+cabal-version: 3.0 name: om-doh-version: 0.1.0.1+version: 0.1.0.2 synopsis: om-doh -- description: homepage: https://github.com/owensmurray/om-doh@@ -14,7 +12,6 @@ -- category: build-type: Simple extra-source-files: README.md-cabal-version: >=1.10 library exposed-modules: @@ -23,14 +20,14 @@ other-modules: -- other-extensions: build-depends:- base >= 4.13 && < 4.14,- base64 >= 0.4.2.2 && < 0.5,- bytestring >= 0.10.10.1 && < 0.11,- http-api-data >= 0.4.1.1 && < 0.5,- resolv >= 0.1.2.0 && < 0.2,- servant >= 0.16.2 && < 0.17,- servant-server >= 0.16.2 && < 0.17,- text >= 1.2.4.0 && < 1.3+ , base >= 4.19.0.0 && < 4.20+ , base64 >= 1.0 && < 1.1+ , bytestring >= 0.12.0.2 && < 0.13+ , http-api-data >= 0.6 && < 0.7+ , resolv >= 0.2.0.2 && < 0.3+ , servant >= 0.20.1 && < 0.21+ , servant-server >= 0.20 && < 0.21+ , text >= 2.1 && < 2.2 hs-source-dirs: src default-language: Haskell2010 ghc-options:
src/OM/DoH/Api.hs view
@@ -17,7 +17,7 @@ import Data.ByteString (ByteString)-import Data.ByteString.Base64 (decodeBase64)+import Data.ByteString.Base64 (decodeBase64Untyped) import Data.Text.Encoding (encodeUtf8) import GHC.Generics (Generic) import Servant.API (type (:>), Accept(contentType),@@ -49,7 +49,7 @@ newtype Query = Query {unQuery :: ByteString} deriving newtype (MimeUnrender DnsMsgCT) instance FromHttpApiData Query where- parseUrlPiece txt = Query <$> decodeBase64 (encodeUtf8 txt)+ parseUrlPiece txt = Query <$> decodeBase64Untyped (encodeUtf8 txt) {- |