Skip to content

Commit

Permalink
Remove instance for json body
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroslins committed Oct 19, 2023
1 parent efbb33c commit 026794c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mig-extra/src/Mig/Extra/Server/Json.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ instance (ToSchema a, FromJSON a, ToRoute b) => ToRoute (Body a -> b) where
(toRouteFun :: ((Core.Body Json a -> b) -> ServerFun (Core.MonadOf b)))
(\(Core.Body a) -> f (Body a))

instance (ToSchema a, FromJSON a, ToRoute b) => ToServer (Body a -> b) where
toServer f =
(toServer :: ((Core.Body Json a -> b) -> Server (Core.MonadOf b)))
(\(Core.Body a) -> f (Body a))

instance (FromJSON a, ToSchema a, ToMiddleware b) => ToMiddleware (Body a -> b) where
toMiddlewareInfo = toMiddlewareInfo @(Core.Body Json a -> b)

Expand Down

0 comments on commit 026794c

Please sign in to comment.