packages feed

servant-ekg 0.3 → 0.3.1

raw patch · 2 files changed

+15/−4 lines, 2 filesdep ~hashabledep ~servant

Dependency ranges changed: hashable, servant

Files

lib/Servant/Ekg.hs view
@@ -168,6 +168,17 @@     enumerateEndpoints _ = [APIEndpoint mempty method]       where method = reflectMethod (Proxy :: Proxy method) +#if MIN_VERSION_servant(0,17,0)+instance ReflectMethod method => HasEndpoint (NoContentVerb method) where+    getEndpoint _ req = case pathInfo req of+        [] | requestMethod req == method -> Just (APIEndpoint [] method)+        _                                -> Nothing+      where method = reflectMethod (Proxy :: Proxy method)++    enumerateEndpoints _ = [APIEndpoint mempty method]+      where method = reflectMethod (Proxy :: Proxy method)+#endif+ instance ReflectMethod method => HasEndpoint (Stream method status framing ct a) where     getEndpoint _ req = case pathInfo req of         [] | requestMethod req == method -> Just (APIEndpoint [] method)
servant-ekg.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name:          servant-ekg-version:       0.3+version:       0.3.1 synopsis:      Helpers for using ekg with servant description:   Helpers for using ekg with servant, e.g.. counters per endpoint. license:       BSD3@@ -13,7 +13,7 @@  category:      Servant, Web, System build-type:    Simple-tested-with: ghc ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.3+tested-with:   GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 extra-source-files: README.md CHANGELOG.md  source-repository HEAD@@ -28,8 +28,8 @@       base                  >=4.9      && <4.13     , ekg-core              >=0.1.1.4  && <0.2     , http-types            >=0.12.2   && <0.13-    , hashable              >=1.2.7.0  && <1.3-    , servant               >=0.14     && <0.17+    , hashable              >=1.2.7.0  && <1.4+    , servant               >=0.14     && <0.18     , text                  >=1.2.3.0  && <1.3     , time                  >=1.6.0.1  && <1.9     , unordered-containers  >=0.2.9.0  && <0.3