summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordfithian <>2019-08-29 17:36:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-08-29 17:36:00 (GMT)
commite3375c675a381800381aedfc4786b5a953af35f6 (patch)
tree22f69ad23c5bbd9c653d48ba17bf1f462cd83b83
parent15541f80fb410b8d331d15f05692fb5e0b150cb2 (diff)
version 0.6.0.00.6.0.0
-rw-r--r--composite-swagger.cabal44
-rw-r--r--src/Composite/Swagger/Base.hs4
2 files changed, 24 insertions, 24 deletions
diff --git a/composite-swagger.cabal b/composite-swagger.cabal
index befcf9a..d548d89 100644
--- a/composite-swagger.cabal
+++ b/composite-swagger.cabal
@@ -1,13 +1,13 @@
cabal-version: 1.12
--- This file has been generated from package.yaml by hpack version 0.31.0.
+-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
--- hash: ce20790d4c15e34872d0f1a00b39e6fb0773d027febd102e2b116642143f34d6
+-- hash: 5f7e0aa02554f85ebd087849caad8e1caaf1975bb3a526c3f3b960ae4a0799b0
name: composite-swagger
-version: 0.5.5.0
+version: 0.6.0.0
synopsis: Swagger for Vinyl/Frames records
description: Integration between Swagger and Vinyl/Frames records allowing easily derivable/explicit Swagger definitions for records.
category: Records
@@ -19,31 +19,34 @@ license: BSD3
build-type: Simple
library
+ exposed-modules:
+ Composite.Swagger
+ Composite.Swagger.Base
+ Composite.Swagger.OrphanInstances
+ Composite.Swagger.TH
+ other-modules:
+ Paths_composite_swagger
hs-source-dirs:
src
default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings PolyKinds ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeFamilies TypeOperators ViewPatterns
ghc-options: -Wall -O2
build-depends:
base >=4.7 && <5
- , composite-base >=0.5.3.0 && <0.6
+ , composite-base >=0.5.3.0 && <0.7
, insert-ordered-containers >=0.2.1.0 && <0.3
- , lens >=4.15.4 && <4.17
- , swagger2 >=2.1.6 && <2.3
- , template-haskell >=2.11.1.0 && <2.14
+ , lens >=4.15.4 && <4.18
+ , swagger2 >=2.1.6 && <2.5
+ , template-haskell >=2.11.1.0 && <2.15
, text >=1.2.2.2 && <1.3
- , vinyl >=0.5.3 && <0.9
- exposed-modules:
- Composite.Swagger
- Composite.Swagger.Base
- Composite.Swagger.OrphanInstances
- Composite.Swagger.TH
- other-modules:
- Paths_composite_swagger
+ , vinyl >=0.5.3 && <0.12
default-language: Haskell2010
test-suite composite-swagger-test
type: exitcode-stdio-1.0
main-is: Main.hs
+ other-modules:
+ THSpec
+ Paths_composite_swagger
hs-source-dirs:
test
default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings PolyKinds ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeFamilies TypeOperators ViewPatterns
@@ -56,12 +59,9 @@ test-suite composite-swagger-test
, composite-swagger
, hspec
, insert-ordered-containers >=0.2.1.0 && <0.3
- , lens >=4.15.4 && <4.17
- , swagger2 >=2.1.6 && <2.3
- , template-haskell >=2.11.1.0 && <2.14
+ , lens >=4.15.4 && <4.18
+ , swagger2 >=2.1.6 && <2.5
+ , template-haskell >=2.11.1.0 && <2.15
, text >=1.2.2.2 && <1.3
- , vinyl >=0.5.3 && <0.9
- other-modules:
- THSpec
- Paths_composite_swagger
+ , vinyl >=0.5.3 && <0.12
default-language: Haskell2010
diff --git a/src/Composite/Swagger/Base.hs b/src/Composite/Swagger/Base.hs
index 9d049ac..b126790 100644
--- a/src/Composite/Swagger/Base.hs
+++ b/src/Composite/Swagger/Base.hs
@@ -1,6 +1,6 @@
module Composite.Swagger.Base where
-import Control.Lens (Unwrapped, Wrapped, (&), (.~))
+import Control.Lens (Unwrapped, Wrapped, (&), (?~))
import Composite.Swagger.OrphanInstances ()
import Data.Proxy (Proxy (Proxy))
import Data.Swagger
@@ -15,4 +15,4 @@ wrappedSchema :: (Wrapped wrap, ToSchema (Unwrapped wrap)) => Proxy wrap -> Stri
wrappedSchema (Proxy :: Proxy wrap) name = do
s <- declareSchema (Proxy :: Proxy (Unwrapped wrap))
pure $ NamedSchema (Just $ Text.pack name) s
- & type_ .~ SwaggerObject
+ & type_ ?~ SwaggerObject