Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flora-pm/flora-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 28442edebbee6b7e23d950e24f338656656c32f6
Choose a base ref
..
head repository: flora-pm/flora-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4140e42b55e7cbb1865194b8c0c9e06e08f957c9
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/datatypes/Prometheus/Servant/HasEndpoint.hs
3 changes: 2 additions & 1 deletion src/datatypes/Prometheus/Servant/HasEndpoint.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# OPTIONS_GHC -Wno-orphans #-}

module Prometheus.Servant.HasEndpoint where

import Data.Proxy
@@ -7,7 +8,7 @@ import Prometheus.Servant.Internal
import Servant.API.MultiVerb
import Servant.API.Verbs

instance ReflectMethod method => HasEndpoint (MultiVerb method requestContentType returnValues responses) where
instance ReflectMethod method => HasEndpoint (MultiVerb method requestContentType returnValues responses) where
getEndpoint _ req = case pathInfo req of
[] | requestMethod req == method -> Just (Endpoint [] method)
_ -> Nothing