Skip to content

Commit

Permalink
Release 0.12.0 (#455)
Browse files Browse the repository at this point in the history
* changelog date

* update template haskell bounds

* for cabal too

* update index.md

* lts-15.13

* stack yaml
  • Loading branch information
nalchevanidze authored May 21, 2020
1 parent 81e9cc0 commit 5225224
Show file tree
Hide file tree
Showing 13 changed files with 108 additions and 35 deletions.
42 changes: 40 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,44 @@ jobs:
ghc_8_6_5:
docker:
- image: fpco/stack-build:lts-14.14
steps:
- checkout
- restore_cache:
name: restore cached stack
keys:
- stack-vesrion-{{ checksum "stack-14.14.yaml" }}
- restore_cache:
name: restore cached dependencies
keys:
- stack-dependencies-{{ checksum "stack-14.14.yaml" }}-{{ checksum "package.yaml" }}-{{ checksum "examples/package.yaml" }}
- run:
name: setup stack
command: stack --no-terminal setup
- save_cache:
name: cache stack
key: stack-vesrion-{{ checksum "stack-14.14.yaml" }}
paths:
- /root/.stack
- run:
name: install dependencies
command: stack build --skip-ghc-check --no-terminal --test --only-dependencies
- save_cache:
name: cache dependencies
key: stack-dependencies-{{ checksum "stack-14.14.yaml" }}-{{ checksum "package.yaml" }}-{{ checksum "examples/package.yaml" }}
paths:
- ".stack-work"
- "/root/.stack"
- run:
name: Run tests
command: stack test --haddock --no-haddock-deps
- run:
name: Install executables
command: stack install

## GHC 8.8.3
ghc_8_8_3:
docker:
- image: fpco/stack-build:lts-15.13
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -112,7 +150,7 @@ jobs:
- run:
name: Install executables
command: stack install

## GHC Nightly
ghc_nightly:
docker:
Expand Down Expand Up @@ -158,4 +196,4 @@ workflows:
- ghc_8_2_2
- ghc_8_4_4
- ghc_8_6_5
- ghc_nightly
- ghc_nightly
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.12.0 Unreleased Changes
## 0.12.0 - 21.05.2020

### Breaking Changes

Expand Down
30 changes: 29 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ data NonWrapped

You will get the following schema:


```gql
# has wrapper types
Expand Down Expand Up @@ -492,6 +491,35 @@ rootResolver = GQLRootResolver
deityByEvent _ = fetchDeity -- Resolve Old State
```

### Interface

1. defining interface with Haskell Types (runtime validation):

```hs
-- interface is just regular type derived as interface
newtype Person m = Person {name :: m Text}
deriving (Generic)
instance GQLType (Person m) where
type KIND (Person m) = INTERFACE
-- with GQLType user can links interfaces to implementing object
instance GQLType Deity where
implements _ = [interface (Proxy @Person)]
```

2. defining with `importGQLDocument` and `DSL` (compile time validation):

```gql
interface Account {
name: String!
}
type User implements Account {
name: String!
}
```

## Morpheus `GraphQL Client` with Template haskell QuasiQuotes

```hs
Expand Down
2 changes: 1 addition & 1 deletion morpheus-graphql-client/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

## 0.12.0 Unreleased Changes
## 0.12.0 - 21.05.2020
8 changes: 4 additions & 4 deletions morpheus-graphql-client/morpheus-graphql-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 04ae4fbb24da17e5e7c58e7efa6e91c56d6e6b1427c0d82d00440e6675ffb084
-- hash: 8749fc28a63b46eed778a0eb7cfcb2e6f184c7e9c49a7f3a2847b7b735e2599e

name: morpheus-graphql-client
version: 0.12.0
Expand Down Expand Up @@ -46,9 +46,9 @@ library
, base >=4.7 && <5
, bytestring >=0.10.4 && <0.11
, morpheus-graphql-core >=0.12.0
, mtl >=2.0 && <=2.3
, template-haskell >=2.0 && <=2.16
, mtl >=2.0 && <=3.0
, template-haskell >=2.0 && <=3.0
, text >=1.2.3.0 && <1.3
, transformers >=0.3.0.0 && <0.6
, transformers >=0.3.0.0 && <1.0
, unordered-containers >=0.2.8.0 && <0.3
default-language: Haskell2010
6 changes: 3 additions & 3 deletions morpheus-graphql-client/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ dependencies:
- aeson >= 1.4.4.0 && <= 1.6
- unordered-containers >= 0.2.8.0 && < 0.3
- morpheus-graphql-core >= 0.12.0
- template-haskell >= 2.0 && <= 2.16
- transformers >= 0.3.0.0 && < 0.6
- mtl >= 2.0 && <= 2.3
- template-haskell >= 2.0 && <= 3.0
- transformers >= 0.3.0.0 && < 1.0
- mtl >= 2.0 && <= 3.0

library:
source-dirs: src
Expand Down
2 changes: 1 addition & 1 deletion morpheus-graphql-core/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.12.0 Unreleased Changes
## 0.12.0 - 21.05.2020

## New features

Expand Down
10 changes: 5 additions & 5 deletions morpheus-graphql-core/morpheus-graphql-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: c7c5117b4e595a6e3e329fefdd2b1fe469ae6b558d72a979beb9a4031362b2d4
-- hash: 4a337fa1d88f2e1ca1eb76ec72c4bd0e5e91ef67626a02682384994f6731d446

name: morpheus-graphql-core
version: 0.12.0
Expand Down Expand Up @@ -109,9 +109,9 @@ library
, hashable >=1.0.0
, megaparsec >=7.0.0 && <9.0.0
, scientific >=0.3.6.2 && <0.4
, template-haskell >=2.0 && <=2.16
, template-haskell >=2.0 && <=3.0
, text >=1.2.3.0 && <1.3
, th-lift-instances >=0.1.1 && <=0.2.0
, th-lift-instances >=0.1.1 && <=0.3
, transformers >=0.3.0.0 && <0.6
, unordered-containers >=0.2.8.0 && <0.3
, vector >=0.12.0.1 && <0.13
Expand All @@ -137,9 +137,9 @@ test-suite morpheus-test
, scientific >=0.3.6.2 && <0.4
, tasty
, tasty-hunit
, template-haskell >=2.0 && <=2.16
, template-haskell >=2.0 && <=3.0
, text >=1.2.3.0 && <1.3
, th-lift-instances >=0.1.1 && <=0.2.0
, th-lift-instances >=0.1.1 && <=0.3
, transformers >=0.3.0.0 && <0.6
, unordered-containers >=0.2.8.0 && <0.3
, vector >=0.12.0.1 && <0.13
Expand Down
4 changes: 2 additions & 2 deletions morpheus-graphql-core/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies:
- transformers >= 0.3.0.0 && < 0.6
- scientific >= 0.3.6.2 && < 0.4
- vector >= 0.12.0.1 && < 0.13
- template-haskell >= 2.0 && <= 2.16
- th-lift-instances >= 0.1.1 && <= 0.2.0
- template-haskell >= 2.0 && <= 3.0
- th-lift-instances >= 0.1.1 && <= 0.3
- hashable >= 1.0.0

library:
Expand Down
18 changes: 9 additions & 9 deletions morpheus-graphql.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: e82e068bd4d9cc31a59b855a0f9ffd3c0ca580f98f818d517c5ea730f34b8437
-- hash: c98d51df8567b3a33a0b9f3dcf93217534d9f3a1d666f1ac2ab69b5ce6cfe0b6

name: morpheus-graphql
version: 0.12.0
Expand Down Expand Up @@ -394,16 +394,16 @@ library
, containers >=0.4.2.1 && <0.7
, megaparsec >=7.0.0 && <9.0.0
, morpheus-graphql-core >=0.12.0
, mtl >=2.0 && <=2.3
, mtl >=2.0 && <=3.0
, scientific >=0.3.6.2 && <0.4
, template-haskell >=2.0 && <=2.16
, template-haskell >=2.0 && <=3.0
, text >=1.2.3.0 && <1.3
, transformers >=0.3.0.0 && <0.6
, unliftio-core >=0.0.1 && <=0.3
, unliftio-core >=0.0.1 && <=0.4
, unordered-containers >=0.2.8.0 && <0.3
, uuid >=1.0 && <=1.4
, vector >=0.12.0.1 && <0.13
, websockets >=0.11.0 && <=0.13
, websockets >=0.11.0 && <=1.0
default-language: Haskell2010

test-suite morpheus-test
Expand Down Expand Up @@ -442,16 +442,16 @@ test-suite morpheus-test
, megaparsec >=7.0.0 && <9.0.0
, morpheus-graphql
, morpheus-graphql-core >=0.12.0
, mtl >=2.0 && <=2.3
, mtl >=2.0 && <=3.0
, scientific >=0.3.6.2 && <0.4
, tasty
, tasty-hunit
, template-haskell >=2.0 && <=2.16
, template-haskell >=2.0 && <=3.0
, text >=1.2.3.0 && <1.3
, transformers >=0.3.0.0 && <0.6
, unliftio-core >=0.0.1 && <=0.3
, unliftio-core >=0.0.1 && <=0.4
, unordered-containers >=0.2.8.0 && <0.3
, uuid >=1.0 && <=1.4
, vector >=0.12.0.1 && <0.13
, websockets >=0.11.0 && <=0.13
, websockets >=0.11.0 && <=1.0
default-language: Haskell2010
8 changes: 4 additions & 4 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ dependencies:
- transformers >= 0.3.0.0 && < 0.6
- scientific >= 0.3.6.2 && < 0.4
- vector >= 0.12.0.1 && < 0.13
- mtl >= 2.0 && <= 2.3
- mtl >= 2.0 && <= 3.0
- morpheus-graphql-core >= 0.12.0

- uuid >= 1.0 && <= 1.4
- websockets >= 0.11.0 && <= 0.13
- template-haskell >= 2.0 && <= 2.16
- unliftio-core >= 0.0.1 && <= 0.3
- websockets >= 0.11.0 && <= 1.0
- template-haskell >= 2.0 && <= 3.0
- unliftio-core >= 0.0.1 && <= 0.4

library:
source-dirs: src
Expand Down
7 changes: 7 additions & 0 deletions stack-14.14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ghc 8.6.5
resolver: lts-14.14
packages:
- examples
- morpheus-graphql-client
- morpheus-graphql-core
- .
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ghc 8.6.5
resolver: lts-14.14
# ghc 8.8.3
resolver: lts-15.13
packages:
- examples
- morpheus-graphql-client
Expand Down

0 comments on commit 5225224

Please sign in to comment.