Removed unnecessary OVERLAPPING/OVERLAPPABLE pragmas

This commit is contained in:
Catherine Galkina 2019-09-08 15:04:18 +03:00 committed by Oleg Grenrus
parent 8550926d90
commit b4372b5c14
2 changed files with 4 additions and 6 deletions

View File

@ -242,9 +242,8 @@ instance {-# OVERLAPPING #-}
hoistClientMonad _ _ f ma = f ma
instance {-# OVERLAPPING #-}
( RunClient m, ReflectMethod method
) => HasClient m (NoContentVerb method) where
instance (RunClient m, ReflectMethod method) =>
HasClient m (NoContentVerb method) where
type Client m (NoContentVerb method)
= m NoContent
clientWithRoute _pm Proxy req = do

View File

@ -298,9 +298,8 @@ instance {-# OVERLAPPING #-}
where method = reflectMethod (Proxy :: Proxy method)
status = toEnum . fromInteger $ natVal (Proxy :: Proxy status)
instance {-# OVERLAPPABLE #-}
(ReflectMethod method
) => HasServer (NoContentVerb method) context where
instance (ReflectMethod method) =>
HasServer (NoContentVerb method) context where
type ServerT (NoContentVerb method) m = m NoContent
hoistServerWithContext _ _ nt s = nt s