Dropped orphan instance for MediaType (now available upstream).

This commit is contained in:
Matthias Fischmann 2015-02-24 08:54:14 +01:00
parent 1fef813a3b
commit f11d5207e4
2 changed files with 1 additions and 7 deletions

View file

@ -31,7 +31,7 @@ library
, aeson , aeson
, bytestring , bytestring
, hashable , hashable
, http-media , http-media >= 0.6
, lens , lens
, servant >= 0.2.1 , servant >= 0.2.1
, string-conversions , string-conversions

View file

@ -209,12 +209,6 @@ import qualified Data.HashMap.Strict as HM
import qualified Data.Text as T import qualified Data.Text as T
import qualified Network.HTTP.Media as M import qualified Network.HTTP.Media as M
-- | Temporary orphan. Can be eliminated as soon as
-- https://github.com/zmthy/http-media/pull/12 has been released.
-- (Also consider removing StandaloneDeriving language ext above.)
instance Ord M.MediaType where
compare t t' = compare (show t) (show t')
-- | Supported HTTP request methods -- | Supported HTTP request methods
data Method = DocDELETE -- ^ the DELETE method data Method = DocDELETE -- ^ the DELETE method
| DocGET -- ^ the GET method | DocGET -- ^ the GET method