Add HasEndpoint instance for BasicAuth

This commit is contained in:
Jesse Kempf 2019-02-11 16:52:05 -08:00 committed by Oleg Grenrus
parent 2183528966
commit 0d966b5b67
2 changed files with 5 additions and 1 deletions

View file

@ -184,3 +184,7 @@ instance HasEndpoint Raw where
instance HasEndpoint (sub :: *) => HasEndpoint (CaptureAll (h :: Symbol) a :> sub) where
getEndpoint _ = getEndpoint (Proxy :: Proxy sub)
enumerateEndpoints _ = enumerateEndpoints (Proxy :: Proxy sub)
instance HasEndpoint (sub :: *) => HasEndpoint (BasicAuth (realm :: Symbol) a :> sub) where
getEndpoint _ = getEndpoint (Proxy :: Proxy sub)
enumerateEndpoints _ = enumerateEndpoints (Proxy :: Proxy sub)

View file

@ -1,6 +1,6 @@
cabal-version: >=1.10
name: servant-ekg
version: 0.3.0.0
version: 0.3.1.0
synopsis: Helpers for using ekg with servant
description: Helpers for using ekg with servant, e.g.. counters per endpoint.
license: BSD3