packages feed

solga 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+3/−3 lines, 2 filesdep ~aeson

Dependency ranges changed: aeson

Files

solga.cabal view
@@ -1,5 +1,5 @@ name:                solga-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Simple typesafe web routing description:         A library for easily specifying web APIs and implementing them in a type-safe way. license:             MIT@@ -21,7 +21,7 @@                        wai,                        bytestring,                        containers,-                       aeson,+                       aeson >= 1.0.0.0,                        wai-extra,                        http-types,                        resourcet,
src/Solga.hs view
@@ -205,7 +205,7 @@  instance Aeson.ToJSON a => Router (JSON a) where   tryRoute _ = Just $ \json cont ->-    cont $ Wai.responseBuilder HTTP.status200 headers $ Aeson.encodeToBuilder $ Aeson.toJSON $ jsonResponse json+    cont $ Wai.responseBuilder HTTP.status200 headers $ Aeson.fromEncoding $ Aeson.toEncoding $ jsonResponse json       where headers = [ ( HTTP.hContentType, "application/json" ) ]  -- | Set extra headers on responses.