1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-07-09 03:29:33 +02:00

Upgrade GHC to 9.8 and upgrade dependencies

This commit is contained in:
Adrian Sieber 2025-05-04 21:08:50 +00:00
parent 9b67cfade0
commit 4ccae2adba
5 changed files with 16 additions and 18 deletions

View file

@ -30,9 +30,9 @@ flags:
default: false default: false
dependencies: dependencies:
- base >= 4.18.2 && < 4.19 - base >= 4.18.2 && < 4.20
- protolude >= 0.3.4 && < 0.4 - protolude >= 0.3.4 && < 0.4
- text >= 2.0.2 && < 2.1 - text >= 2.0 && < 2.2
- sqlite-simple >= 0.4.19 && < 0.5 - sqlite-simple >= 0.4.19 && < 0.5
default-extensions: default-extensions:
@ -55,6 +55,7 @@ default-extensions:
- OverloadedStrings - OverloadedStrings
- RankNTypes - RankNTypes
- RecordWildCards - RecordWildCards
- RoleAnnotations
- ScopedTypeVariables - ScopedTypeVariables
- StandaloneDeriving - StandaloneDeriving
- TupleSections - TupleSections
@ -79,14 +80,14 @@ library:
dependencies: dependencies:
- aeson >= 2.1.2.1 && < 2.3 - aeson >= 2.1.2.1 && < 2.3
- blaze-markup >= 0.8.3 && < 0.9 - blaze-markup >= 0.8.3 && < 0.9
- bytestring >= 0.11.5 && < 0.12 - bytestring >= 0.11 && < 0.13
- conduit >= 1.3.5 && < 1.4 - conduit >= 1.3.5 && < 1.4
- directory >= 1.3.8 && < 1.4 - directory >= 1.3.8 && < 1.4
- double-x-encoding >= 1.2.1 && < 1.3 - double-x-encoding >= 1.2.1 && < 1.3
- exceptions >= 0.10.7 && < 0.11 - exceptions >= 0.10.7 && < 0.11
- extra >= 1.7.14 && < 1.8 - extra >= 1.7.14 && < 1.8
- filepath >= 1.4.200 && < 1.5 - filepath >= 1.4.200 && < 1.5
- graphql >= 1.2.0.1 && < 1.4 - graphql >= 1.2 && < 1.6
- graphql-spice >= 1.0.2 && < 1.1 - graphql-spice >= 1.0.2 && < 1.1
- http-types >= 0.12.4 && < 0.13 - http-types >= 0.12.4 && < 0.13
- process >= 1.6.17 && < 1.7 - process >= 1.6.17 && < 1.7
@ -96,8 +97,8 @@ library:
- servant-docs >= 0.13 && < 0.14 - servant-docs >= 0.13 && < 0.14
- servant-multipart >= 0.12.1 && < 0.13 - servant-multipart >= 0.12.1 && < 0.13
- servant-server >= 0.20 && < 0.21 - servant-server >= 0.20 && < 0.21
- simple-sql-parser >= 0.6.1 && < 0.8 - simple-sql-parser >= 0.6 && < 0.9
- template-haskell >= 2.20.0 && < 2.21 - template-haskell >= 2.20.0 && < 2.22
- time >= 1.12.2 && < 1.13 - time >= 1.12.2 && < 1.13
- typed-process >= 0.2.11 && < 0.3 - typed-process >= 0.2.11 && < 0.3
- unix >= 2.8.4 && < 2.9 - unix >= 2.8.4 && < 2.9
@ -122,7 +123,7 @@ executables:
- http-client >= 0.7.17 && < 0.8 - http-client >= 0.7.17 && < 0.8
- wai >= 3.2.4 && < 3.3 - wai >= 3.2.4 && < 3.3
- wai-cors >= 0.2.7 && < 0.3 - wai-cors >= 0.2.7 && < 0.3
- warp >= 3.3.31 && < 3.4 - warp >= 3.3.31 && < 3.5
tests: tests:
airgql-test: airgql-test:
@ -131,14 +132,11 @@ tests:
dependencies: dependencies:
- aeson >= 2.1.2.1 && < 2.3 - aeson >= 2.1.2.1 && < 2.3
- airgql - airgql
- bytestring >= 0.11.5 && < 0.12 - bytestring >= 0.11 && < 0.13
- directory >= 1.3.8 && < 1.4 - directory >= 1.3.8 && < 1.4
- exceptions >= 0.10.7 && < 0.11
- filepath >= 1.4.200 && < 1.5 - filepath >= 1.4.200 && < 1.5
- graphql >= 1.2.0.1 && < 1.4
- graphql-spice >= 1.0.2 && < 1.1 - graphql-spice >= 1.0.2 && < 1.1
- hspec >= 2.11.8 && < 2.12 - hspec >= 2.11.8 && < 2.12
- servant-server >= 0.20 && < 0.21 - servant-server >= 0.20 && < 0.21
- unix >= 2.8.4 && < 2.9 - unix >= 2.8.4 && < 2.9
- unordered-containers >= 0.2.20 && < 0.3
- vector >=0.13.0.0 && < 0.14 - vector >=0.13.0.0 && < 0.14

View file

@ -19,6 +19,9 @@ data OutObjectType m = OutObjectType
} }
type role OutObjectType nominal
outObjectTypeToObjectType :: OutObjectType m -> Out.ObjectType m outObjectTypeToObjectType :: OutObjectType m -> Out.ObjectType m
outObjectTypeToObjectType objectType = outObjectTypeToObjectType objectType =
Out.ObjectType Out.ObjectType

View file

@ -17,8 +17,8 @@ import Protolude (
import Data.Aeson qualified as Ae import Data.Aeson qualified as Ae
import Database.SQLite.Simple qualified as SS import Database.SQLite.Simple qualified as SS
import Database.SQLite.Simple.QQ (sql) import Database.SQLite.Simple.QQ (sql)
import Language.GraphQL.Class (gql)
import Language.GraphQL.JSON (graphql) import Language.GraphQL.JSON (graphql)
import Language.GraphQL.TH (gql)
import System.Directory (makeAbsolute) import System.Directory (makeAbsolute)
import System.FilePath ((</>)) import System.FilePath ((</>))
import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec (Spec, describe, it, shouldBe)

View file

@ -18,8 +18,8 @@ import Data.Aeson qualified as Ae
import Data.Aeson.KeyMap qualified as KeyMap import Data.Aeson.KeyMap qualified as KeyMap
import Database.SQLite.Simple qualified as SS import Database.SQLite.Simple qualified as SS
import Database.SQLite.Simple.QQ (sql) import Database.SQLite.Simple.QQ (sql)
import Language.GraphQL.Class (gql)
import Language.GraphQL.JSON (graphql) import Language.GraphQL.JSON (graphql)
import Language.GraphQL.TH (gql)
import System.FilePath ((</>)) import System.FilePath ((</>))
import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec (Spec, describe, it, shouldBe)
@ -617,10 +617,7 @@ main = void $ do
SQLPost{query = "SELECT * from loaders"} SQLPost{query = "SELECT * from loaders"}
restResult.rows restResult.rows
`shouldBe` [ KeyMap.singleton `shouldBe` [KeyMap.singleton "progress" (Ae.Number 1.23)]
"progress"
(Ae.Number 1.23)
]
it "supports variables" $ do it "supports variables" $ do
let let

View file

@ -19,8 +19,8 @@ import Protolude (
import Data.Aeson qualified as Ae import Data.Aeson qualified as Ae
import Database.SQLite.Simple qualified as SS import Database.SQLite.Simple qualified as SS
import Database.SQLite.Simple.QQ (sql) import Database.SQLite.Simple.QQ (sql)
import Language.GraphQL.Class (gql)
import Language.GraphQL.JSON (graphql) import Language.GraphQL.JSON (graphql)
import Language.GraphQL.TH (gql)
import System.FilePath ((</>)) import System.FilePath ((</>))
import Test.Hspec (Spec, before_, describe, it, shouldBe, shouldContain) import Test.Hspec (Spec, before_, describe, it, shouldBe, shouldContain)