Unverified Commit 2ca84f1f authored by Ross MacLeod's avatar Ross MacLeod Committed by GitHub
Browse files

Merge pull request #31 from locallycompact/develop

Make compatible with ghc 8.8 and latest dependencies
parents 58c35ea4 8913379e
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: d9f3b3b0d91f2805d2d9943916165deb53116294106fae5db04c754b30ec7bef
-- hash: cfeb3d0920df54a59c8f81a3602631386dc681bcc2e3feef582ddbe277e35a63
name: composite-aeson-refined
version: 0.7.1.0
......@@ -32,5 +32,5 @@ library
, base >=4.7 && <5
, composite-aeson >=0.7 && <0.8
, mtl >=2.2.1 && <2.3
, refined >=0.1.2.1 && <0.5
, refined >=0.1.2.1 && <0.6
default-language: Haskell2010
......@@ -14,7 +14,7 @@ dependencies:
- aeson-better-errors >= 0.9.1.0 && < 0.10
- composite-aeson >= 0.7 && < 0.8
- mtl >= 2.2.1 && < 2.3
- refined >= 0.1.2.1 && < 0.5
- refined >= 0.1.2.1 && < 0.6
default-extensions:
- DataKinds
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 919dc4a730a4bdf0886303870c36a4f70ad3fdb530eba59def3f5b105c4cb6b0
-- hash: 27602ac982172d9580750ed9bf880550c86819943effc2c4768effe1d9ebf6a5
name: composite-aeson
version: 0.7.1.0
......@@ -39,26 +39,26 @@ library
default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving LambdaCase MultiParamTypeClasses MultiWayIf OverloadedStrings PatternSynonyms PolyKinds QuasiQuotes RankNTypes ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeApplications TypeFamilies TypeOperators ViewPatterns
ghc-options: -Wall -O2
build-depends:
aeson >=1.1.2.0 && <1.5
aeson >=1.1.2.0 && <1.6
, aeson-better-errors >=0.9.1.0 && <0.10
, base >=4.7 && <5
, composite-base >=0.7 && <0.8
, containers >=0.5.7.0 && <0.7
, contravariant >=1.4 && <1.6
, generic-deriving >=1.11.2 && <1.13
, hashable >=1.2.6.1 && <1.3
, lens >=4.15.4 && <4.18
, generic-deriving >=1.11.2 && <1.14
, hashable >=1.2.6.1 && <1.4
, lens >=4.15.4 && <4.20
, mmorph >=1.0.9 && <1.2
, mtl >=2.2.1 && <2.3
, profunctors >=5.2.1 && <5.4
, profunctors >=5.2.1 && <5.6
, scientific >=0.3.5.1 && <0.4
, tagged >=0.8.5 && <0.9
, template-haskell >=2.11.1.0 && <2.15
, template-haskell >=2.11.1.0 && <2.17
, text >=1.2.2.2 && <1.3
, time >=1.6.0.1 && <1.9
, time >=1.6.0.1 && <1.10
, unordered-containers >=0.2.8.0 && <0.3
, vector >=0.12.0.1 && <0.13
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
test-suite composite-aeson-test
......@@ -78,7 +78,7 @@ test-suite composite-aeson-test
ghc-options: -Wall -O2 -threaded -rtsopts -with-rtsopts=-N -fno-warn-orphans
build-depends:
QuickCheck
, aeson >=1.1.2.0 && <1.5
, aeson >=1.1.2.0 && <1.6
, aeson-better-errors >=0.9.1.0 && <0.10
, aeson-qq
, base >=4.7 && <5
......@@ -86,19 +86,19 @@ test-suite composite-aeson-test
, composite-base >=0.7 && <0.8
, containers >=0.5.7.0 && <0.7
, contravariant >=1.4 && <1.6
, generic-deriving >=1.11.2 && <1.13
, hashable >=1.2.6.1 && <1.3
, generic-deriving >=1.11.2 && <1.14
, hashable >=1.2.6.1 && <1.4
, hspec
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, mmorph >=1.0.9 && <1.2
, mtl >=2.2.1 && <2.3
, profunctors >=5.2.1 && <5.4
, profunctors >=5.2.1 && <5.6
, scientific >=0.3.5.1 && <0.4
, tagged >=0.8.5 && <0.9
, template-haskell >=2.11.1.0 && <2.15
, template-haskell >=2.11.1.0 && <2.17
, text >=1.2.2.2 && <1.3
, time >=1.6.0.1 && <1.9
, time >=1.6.0.1 && <1.10
, unordered-containers >=0.2.8.0 && <0.3
, vector >=0.12.0.1 && <0.13
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
......@@ -11,25 +11,25 @@ category: Records
dependencies:
- base >= 4.7 && < 5
- aeson >= 1.1.2.0 && < 1.5
- aeson >= 1.1.2.0 && < 1.6
- aeson-better-errors >= 0.9.1.0 && < 0.10
- composite-base >= 0.7 && < 0.8
- containers >= 0.5.7.0 && < 0.7
- contravariant >= 1.4 && < 1.6
- generic-deriving >= 1.11.2 && < 1.13
- hashable >= 1.2.6.1 && < 1.3
- lens >= 4.15.4 && < 4.18
- generic-deriving >= 1.11.2 && < 1.14
- hashable >= 1.2.6.1 && < 1.4
- lens >= 4.15.4 && < 4.20
- mmorph >= 1.0.9 && < 1.2
- mtl >= 2.2.1 && < 2.3
- profunctors >= 5.2.1 && < 5.4
- profunctors >= 5.2.1 && < 5.6
- scientific >= 0.3.5.1 && < 0.4
- tagged >= 0.8.5 && < 0.9
- template-haskell >= 2.11.1.0 && < 2.15
- template-haskell >= 2.11.1.0 && < 2.17
- text >= 1.2.2.2 && < 1.3
- time >= 1.6.0.1 && < 1.9
- time >= 1.6.0.1 && < 1.10
- unordered-containers >= 0.2.8.0 && < 0.3
- vector >= 0.12.0.1 && < 0.13
- vinyl >= 0.5.3 && < 0.13
- vinyl >= 0.5.3 && < 0.14
default-extensions:
- DataKinds
......
{-# LANGUAGE CPP #-}
module Composite.Aeson.Formats.DateTime
( DateTimeFormat(..), regularDateTimeFormat
, dateTimeJsonFormat
......@@ -94,13 +95,19 @@ instance Applicative SuccessOrFail where
instance Monad SuccessOrFail where
return = Success
fail = Fail
Success a >>= k = k a
Fail f >>= _ = Fail f
#if MIN_VERSION_base(4,13,0)
instance MonadFail SuccessOrFail where
#endif
fail = Fail
-- |Evaluate some action of type @Monad m => m a@ and apply either the first or second function based on whether the computation completed or used @fail@.
#if MIN_VERSION_base(4,13,0)
successOrFail :: (String -> b) -> (a -> b) -> (forall m. MonadFail m => m a) -> b
#else
successOrFail :: (String -> b) -> (a -> b) -> (forall m. Monad m => m a) -> b
#endif
successOrFail _ f (Success a) = f a
successOrFail f _ (Fail s) = f s
......
......@@ -182,11 +182,11 @@ fieldNameSumFromJson iAs = do
[f] ->
case lookup f (NEL.toList iAs) of
Just (FromJson iA) -> ABE.key f iA
Nothing -> fail $ "unknown field " <> unpack f <> ", expected one of " <> expected
Nothing -> throwError $ ABE.InvalidJSON $ "unknown field " <> unpack f <> ", expected one of " <> expected
[] ->
fail $ "expected an object with one field (" <> expected <> ") not an empty object"
throwError $ ABE.InvalidJSON $ "expected an object with one field (" <> expected <> ") not an empty object"
_ ->
fail $ "expected an object with one field (" <> expected <> ") not many fields"
throwError $ ABE.InvalidJSON $ "expected an object with one field (" <> expected <> ") not many fields"
where
expected = expectedFieldsForInputs iAs
......
......@@ -3,6 +3,7 @@ module Composite.Aeson.Formats.InternalTH
) where
import Composite.Aeson.Base (JsonFormat(JsonFormat), JsonProfunctor(JsonProfunctor))
import Control.Monad.Except (throwError)
import qualified Data.Aeson as Aeson
import qualified Data.Aeson.BetterErrors as ABE
import qualified Data.HashMap.Lazy as HM
......@@ -79,7 +80,7 @@ makeTupleFormats = concat <$> traverse makeTupleFormat [2..59]
ABE.withArray Right >>= \ a ->
if V.length a == $(lift arity)
then pure ()
else fail $(lift $ "expected an array of exactly " <> show arity <> " elements")
else throwError $ ABE.InvalidJSON $ $(lift $ "expected an array of exactly " <> show arity <> " elements")
|]
]
++ map ( \ (n, valName, iName) ->
......
......@@ -5,6 +5,7 @@ import Composite.Aeson.Base (JsonFormat(JsonFormat), JsonProfunctor(JsonProfunct
import Composite.Aeson.Formats.Generic (SumStyle, abeJsonFormat, aesonJsonFormat, jsonArrayFormat, jsonObjectFormat, jsonSumFormat)
import Composite.Aeson.Formats.InternalTH (makeTupleFormats, makeNamedTupleFormats)
import Control.Arrow (first)
import Control.Monad.Except (throwError)
import Control.Lens (_2, _Wrapped, over, view)
import qualified Data.Aeson as Aeson
import qualified Data.Aeson.BetterErrors as ABE
......@@ -116,7 +117,7 @@ naturalJsonFormat = aesonJsonFormat
-- |'JsonFormat' for 'NonEmpty' which maps to a JSON array.
nonEmptyListJsonFormat :: JsonFormat e a -> JsonFormat e (NonEmpty a)
nonEmptyListJsonFormat =
jsonArrayFormat NEL.toList (maybe (fail "expected nonempty array") pure . NEL.nonEmpty)
jsonArrayFormat NEL.toList (maybe (throwError $ ABE.InvalidJSON $ fail "expected nonempty array") pure . NEL.nonEmpty)
-- |JSON format for '()' which maps to JSON as @null@.
nullJsonFormat :: JsonFormat e ()
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 2c10b897d91f5a41384f9782bed6e25f102f890fb3bbd5cc3133a036def4d892
name: composite-base
version: 0.7.1.0
......@@ -34,16 +32,16 @@ library
build-depends:
base >=4.7 && <5
, exceptions >=0.8.3 && <0.11
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, monad-control >=1.0.2.2 && <1.1
, mtl >=2.2.1 && <2.3
, profunctors >=5.2.1 && <5.4
, template-haskell >=2.11.1.0 && <2.15
, profunctors >=5.2.1 && <5.6
, template-haskell >=2.11.1.0 && <2.17
, text >=1.2.2.2 && <1.3
, transformers >=0.5.2.0 && <0.6
, transformers-base >=0.4.4 && <0.5
, unliftio-core >=0.1.0.0 && <0.2.0.0
, vinyl >=0.5.3 && <0.13
, unliftio-core >=0.1.0.0 && <0.3.0.0
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
test-suite composite-base-test
......@@ -63,14 +61,14 @@ test-suite composite-base-test
, composite-base
, exceptions >=0.8.3 && <0.11
, hspec
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, monad-control >=1.0.2.2 && <1.1
, mtl >=2.2.1 && <2.3
, profunctors >=5.2.1 && <5.4
, template-haskell >=2.11.1.0 && <2.15
, profunctors >=5.2.1 && <5.6
, template-haskell >=2.11.1.0 && <2.17
, text >=1.2.2.2 && <1.3
, transformers >=0.5.2.0 && <0.6
, transformers-base >=0.4.4 && <0.5
, unliftio-core >=0.1.0.0 && <0.2.0.0
, vinyl >=0.5.3 && <0.13
, unliftio-core >=0.1.0.0 && <0.3.0.0
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
......@@ -12,16 +12,16 @@ category: Records
dependencies:
- base >= 4.7 && < 5
- exceptions >= 0.8.3 && < 0.11
- lens >= 4.15.4 && < 4.18
- lens >= 4.15.4 && < 4.20
- monad-control >= 1.0.2.2 && < 1.1
- mtl >= 2.2.1 && < 2.3
- profunctors >= 5.2.1 && < 5.4
- template-haskell >= 2.11.1.0 && < 2.15
- profunctors >= 5.2.1 && < 5.6
- template-haskell >= 2.11.1.0 && < 2.17
- text >= 1.2.2.2 && < 1.3
- transformers >= 0.5.2.0 && < 0.6
- transformers-base >= 0.4.4 && < 0.5
- unliftio-core >= 0.1.0.0 && < 0.2.0.0
- vinyl >= 0.5.3 && < 0.13
- unliftio-core >= 0.1.0.0 && < 0.3.0.0
- vinyl >= 0.5.3 && < 0.14
default-extensions:
- ConstraintKinds
......
......@@ -152,7 +152,9 @@ instance Monad m => Monad (ContextT c m) where
a <- runContextT clt ctx
runContextT (k a) ctx
#if !MIN_VERSION_base(4,13,0)
fail = ContextT . const . fail
#endif
instance MonadIO m => MonadIO (ContextT c m) where
liftIO = lift . liftIO
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 1a13d397ede048b5dc58bfc88f8e6e6b30d9d5088930c4812c4403b50a4e6341
-- hash: 9a9f06729576eb376c2021f74709d69aebf8b463c243b587b17c9524c0a8f710
name: composite-ekg
version: 0.7.1.0
......@@ -31,7 +31,7 @@ library
base >=4.7 && <5
, composite-base >=0.7 && <0.8
, ekg-core >=0.1.1.3 && <0.5
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
......@@ -13,9 +13,9 @@ dependencies:
- base >= 4.7 && < 5
- composite-base >= 0.7 && < 0.8
- ekg-core >= 0.1.1.3 && < 0.5
- lens >= 4.15.4 && < 4.18
- lens >= 4.15.4 && < 4.20
- text >= 1.2.2.2 && < 1.3
- vinyl >= 0.5.3 && < 0.13
- vinyl >= 0.5.3 && < 0.14
default-extensions:
- DataKinds
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 79d512035a9620b2f21d5a2384970b6e22dd81ef532f239dfb7f29636c7c95eb
-- hash: 4c4a1b43324fb08b2b6791b4b46b49158e76357848a056e37321bc92e0bd838e
name: composite-opaleye
version: 0.7.1.0
......@@ -36,14 +36,14 @@ library
base >=4.7 && <5
, bytestring >=0.10.8.1 && <0.11
, composite-base >=0.7 && <0.8
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, opaleye >=0.5.4.0 && <0.7
, postgresql-simple >=0.5.3.0 && <0.7
, product-profunctors >=0.8.0.3 && <0.11
, profunctors >=5.2.1 && <5.4
, template-haskell >=2.11.1.0 && <2.15
, profunctors >=5.2.1 && <5.6
, template-haskell >=2.11.1.0 && <2.16
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
test-suite composite-opaleye-test
......@@ -63,12 +63,12 @@ test-suite composite-opaleye-test
, composite-base >=0.7 && <0.8
, composite-opaleye
, hspec
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, opaleye >=0.5.4.0 && <0.7
, postgresql-simple >=0.5.3.0 && <0.7
, product-profunctors >=0.8.0.3 && <0.11
, profunctors >=5.2.1 && <5.4
, template-haskell >=2.11.1.0 && <2.15
, profunctors >=5.2.1 && <5.6
, template-haskell >=2.11.1.0 && <2.16
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
......@@ -13,14 +13,14 @@ dependencies:
- base >= 4.7 && < 5
- bytestring >= 0.10.8.1 && < 0.11
- composite-base >= 0.7 && < 0.8
- lens >= 4.15.4 && < 4.18
- lens >= 4.15.4 && < 4.20
- opaleye >= 0.5.4.0 && < 0.7
- postgresql-simple >= 0.5.3.0 && < 0.7
- product-profunctors >= 0.8.0.3 && < 0.11
- profunctors >= 5.2.1 && < 5.4
- template-haskell >= 2.11.1.0 && < 2.15
- profunctors >= 5.2.1 && < 5.6
- template-haskell >= 2.11.1.0 && < 2.16
- text >= 1.2.2.2 && < 1.3
- vinyl >= 0.5.3 && < 0.13
- vinyl >= 0.5.3 && < 0.14
default-extensions:
- DataKinds
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: ec6c445d145da81b152e82a1fe617a1844671fc7db432aab1caff7257af9a1c2
-- hash: adb7efee01ce5e90496d933b8108280c9e505a9b5d3ea1a21cf17ca81e3ad842
name: composite-swagger
version: 0.7.1.0
......@@ -34,11 +34,11 @@ library
base >=4.7 && <5
, composite-base >=0.7 && <0.8
, insert-ordered-containers >=0.2.1.0 && <0.3
, lens >=4.15.4 && <4.18
, swagger2 >=2.1.6 && <2.5
, template-haskell >=2.11.1.0 && <2.15
, lens >=4.15.4 && <4.20
, swagger2 >=2.1.6 && <2.6
, template-haskell >=2.11.1.0 && <2.16
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
test-suite composite-swagger-test
......@@ -59,9 +59,9 @@ test-suite composite-swagger-test
, composite-swagger
, hspec
, insert-ordered-containers >=0.2.1.0 && <0.3
, lens >=4.15.4 && <4.18
, swagger2 >=2.1.6 && <2.5
, template-haskell >=2.11.1.0 && <2.15
, lens >=4.15.4 && <4.20
, swagger2 >=2.1.6 && <2.6
, template-haskell >=2.11.1.0 && <2.16
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
default-language: Haskell2010
......@@ -13,11 +13,11 @@ dependencies:
- base >= 4.7 && < 5
- composite-base >= 0.7 && < 0.8
- insert-ordered-containers >= 0.2.1.0 && < 0.3
- lens >= 4.15.4 && < 4.18
- swagger2 >= 2.1.6 && < 2.5
- template-haskell >= 2.11.1.0 && < 2.15
- lens >= 4.15.4 && < 4.20
- swagger2 >= 2.1.6 && < 2.6
- template-haskell >= 2.11.1.0 && < 2.16
- text >= 1.2.2.2 && < 1.3
- vinyl >= 0.5.3 && < 0.13
- vinyl >= 0.5.3 && < 0.14
default-extensions:
- DataKinds
......
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.32.0.
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 1db2fc45427c471e697c47abbc497d8ca886b48b295acd0ccfc668897b3f90b3
-- hash: dd59201ed12e265932e82ef4b5606fa27cf8143092d9c0ed6c97cb1e8e8ec876
name: myawesomeserver
version: 0.0.2
......@@ -34,7 +34,7 @@ library
default-extensions: Arrows ConstraintKinds DataKinds DeriveGeneric FlexibleContexts FlexibleInstances GADTs GeneralizedNewtypeDeriving LambdaCase MultiParamTypeClasses NoImplicitPrelude OverloadedStrings PatternSynonyms QuasiQuotes RankNTypes ScopedTypeVariables StandaloneDeriving TemplateHaskell TypeApplications TypeFamilies TypeOperators ViewPatterns
ghc-options: -Wall
build-depends:
aeson >=1.1.2.0 && <1.5
aeson >=1.1.2.0 && <1.6
, base >=4.7 && <5
, bytestring >=0.10.8.1 && <0.11
, classy-prelude >=1.2.0.1 && <1.6
......@@ -47,25 +47,25 @@ library
, ekg >=0.1.1.3 && <0.5
, ekg-core >=0.1.1.3 && <0.5
, exceptions >=0.8.3 && <0.11
, fast-logger >=2.4.10 && <2.5
, fast-logger >=2.4.10 && <3.1
, http-api-data >=0.3.7.1 && <0.5
, insert-ordered-containers >=0.2.1.0 && <0.3
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, monad-control >=1.0.2.2 && <1.1
, monad-logger >=0.3.25.1 && <0.4
, mtl >=2.2.1 && <2.3
, opaleye >=0.5.4.0 && <0.7
, postgresql-simple >=0.5.3.0 && <0.7
, product-profunctors >=0.8.0.3 && <0.11
, profunctors >=5.2.1 && <5.4
, profunctors >=5.2.1 && <5.6
, resource-pool >=0.2.3.2 && <0.3
, servant >=0.11 && <0.17
, servant-server >=0.11.0.1 && <0.17
, servant-swagger >=1.1.4 && <1.5
, servant-swagger-ui >=0.2.4.3.4.0 && <0.4
, swagger2 >=2.1.6 && <2.5
, swagger2 >=2.1.6 && <2.6
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
, warp >=3.2.13 && <3.4
default-language: Haskell2010
......@@ -78,7 +78,7 @@ executable myawesomeserver-exe
default-extensions: Arrows ConstraintKinds DataKinds DeriveGeneric FlexibleContexts FlexibleInstances GADTs GeneralizedNewtypeDeriving LambdaCase MultiParamTypeClasses NoImplicitPrelude OverloadedStrings PatternSynonyms QuasiQuotes RankNTypes ScopedTypeVariables StandaloneDeriving TemplateHaskell TypeApplications TypeFamilies TypeOperators ViewPatterns
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson >=1.1.2.0 && <1.5
aeson >=1.1.2.0 && <1.6
, base >=4.7 && <5
, bytestring >=0.10.8.1 && <0.11
, classy-prelude >=1.2.0.1 && <1.6
......@@ -91,10 +91,10 @@ executable myawesomeserver-exe
, ekg >=0.1.1.3 && <0.5
, ekg-core >=0.1.1.3 && <0.5
, exceptions >=0.8.3 && <0.11
, fast-logger >=2.4.10 && <2.5
, fast-logger >=2.4.10 && <3.1
, http-api-data >=0.3.7.1 && <0.5
, insert-ordered-containers >=0.2.1.0 && <0.3
, lens >=4.15.4 && <4.18
, lens >=4.15.4 && <4.20
, monad-control >=1.0.2.2 && <1.1
, monad-logger >=0.3.25.1 && <0.4
, mtl >=2.2.1 && <2.3
......@@ -102,14 +102,14 @@ executable myawesomeserver-exe
, opaleye >=0.5.4.0 && <0.7
, postgresql-simple >=0.5.3.0 && <0.7
, product-profunctors >=0.8.0.3 && <0.11
, profunctors >=5.2.1 && <5.4
, profunctors >=5.2.1 && <5.6
, resource-pool >=0.2.3.2 && <0.3
, servant >=0.11 && <0.17
, servant-server >=0.11.0.1 && <0.17
, servant-swagger >=1.1.4 && <1.5
, servant-swagger-ui >=0.2.4.3.4.0 && <0.4
, swagger2 >=2.1.6 && <2.5
, swagger2 >=2.1.6 && <2.6
, text >=1.2.2.2 && <1.3
, vinyl >=0.5.3 && <0.13
, vinyl >=0.5.3 && <0.14
, warp >=3.2.13 && <3.4
default-language: Haskell2010
......@@ -35,7 +35,7 @@ default-extensions:
dependencies:
- base >= 4.7 && < 5
- aeson >= 1.1.2.0 && < 1.5
- aeson >= 1.1.2.0 && < 1.6
- bytestring >= 0.10.8.1 && < 0.11
- classy-prelude >= 1.2.0.1 && < 1.6
- composite-aeson >= 0.7 && < 0.8
......@@ -47,25 +47,25 @@ dependencies:
- ekg >= 0.1.1.3 && < 0.5
- ekg-core >= 0.1.1.3 && < 0.5
- exceptions >= 0.8.3 && < 0.11
- fast-logger >= 2.4.10 && < 2.5
- fast-logger >= 2.4.10 && < 3.1
- http-api-data >= 0.3.7.1 && < 0.5
- insert-ordered-containers >= 0.2.1.0 && < 0.3
- lens >= 4.15.4 && < 4.18
- lens >= 4.15.4 && < 4.20
- monad-control >= 1.0.2.2 && < 1.1
- monad-logger >= 0.3.25.1 && < 0.4
- mtl >= 2.2.1 && < 2.3
- opaleye >= 0.5.4.0 && < 0.7
- postgresql-simple >= 0.5.3.0 && < 0.7
- product-profunctors >= 0.8.0.3 && < 0.11
- profunctors >= 5.2.1 && < 5.4
- profunctors >= 5.2.1 && < 5.6
- resource-pool >= 0.2.3.2 && < 0.3
- servant >= 0.11 && < 0.17
- servant-server >= 0.11.0.1 && < 0.17
- servant-swagger >= 1.1.4 && < 1.5
- servant-swagger-ui >= 0.2.4.3.4.0 && < 0.4
- swagger2 >= 2.1.6 && < 2.5
- swagger2 >= 2.1.6 && < 2.6
- text >= 1.2.2.2 && < 1.3
- vinyl >= 0.5.3 && < 0.13
- vinyl >= 0.5.3 && < 0.14
- warp >= 3.2.13 && < 3.4
ghc-options:
......
resolver: lts-14.20
packages:
- composite-aeson
- composite-aeson-refined
- composite-base
- composite-ekg
- composite-opaleye
- composite-swagger
- example
flags: {}
extra-deps:
- refined-0.4.4
nix:
packages:
- lzma
- postgresql
- zlib
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment