[haskell-http-client] update readme; improve lens generation; fix dateFormat (#6448)

* point readme links to canonical locations

* use lenses for non-required model fields, instead of traversals

* fix .gitignore generation

* fix dateFormat cli option bug
This commit is contained in:
Jon Schoning
2017-09-07 10:17:49 -05:00
committed by wing328
parent 3cd3b907f6
commit 4310ea326c
29 changed files with 601 additions and 654 deletions

View File

@@ -29,9 +29,12 @@ dependencies:
- text >=0.11 && <1.3
- time >=1.5 && <1.9
- vector >=0.10.9 && <0.13
- monad-logger >=0.3 && <0.4
- exceptions >= 0.4
- case-insensitive
- swagger-petstore
- safe-exceptions <0.2
- microlens
- swagger-petstore
tests:
tests:
main: Test.hs

View File

@@ -40,10 +40,13 @@ test-suite tests
, text >=0.11 && <1.3
, time >=1.5 && <1.9
, vector >=0.10.9 && <0.13
, monad-logger >=0.3 && <0.4
, exceptions >= 0.4
, case-insensitive
, swagger-petstore
, safe-exceptions <0.2
, microlens
, swagger-petstore
, swagger-petstore
, bytestring >=0.10.0 && <0.11
, containers
, hspec >=1.8

View File

@@ -237,7 +237,11 @@ testUserOps mgr config = do
}
_users =
take 8 $
drop 1 $ iterate (L.over S.userUsernameT (<> "*") . L.over S.userIdT (+ 1)) _user
drop 1 $
iterate
(L.over (S.userUsernameL . L._Just) (<> "*") .
L.over (S.userIdL . L._Just) (+ 1))
_user
before (pure _user) $
it "createUser" $ \user -> do