Skip to content

Commit e0aeb7f

Browse files
authored
Merge pull request #154 from marcosh/hide-protolude-definitions
hide protolude redifined imports
2 parents a948578 + 3962106 commit e0aeb7f

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Breaking changes
99
----------------
1010

1111
* ``Enum`` handlers are now monadic (see `#118`_)
12+
* restrict usage to Protolude 0.2.1 and later
1213

1314
.. _`#118`: https://github.com/jml/graphql-api/issues/118
1415

graphql-api.cabal

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--
33
-- see: https://github.com/sol/hpack
44
--
5-
-- hash: 6aa09d512e2d1e86eeb059e1273005913985418db5c8f94b7361af87744e6bae
5+
-- hash: 39113cf0b3911f4704bf80289a842f6a6cad623940e0146c3af99de590799257
66

77
name: graphql-api
88
version: 0.2.0
@@ -36,7 +36,7 @@ library
3636
, containers
3737
, exceptions
3838
, ghc-prim
39-
, protolude >=0.2
39+
, protolude >=0.2.1
4040
, scientific
4141
, text
4242
, transformers
@@ -75,7 +75,7 @@ test-suite graphql-api-doctests
7575
, base >=4.9 && <5
7676
, doctest
7777
, exceptions
78-
, protolude >=0.2
78+
, protolude >=0.2.1
7979
, transformers
8080
other-modules:
8181
ASTTests
@@ -110,7 +110,7 @@ test-suite graphql-api-tests
110110
, exceptions
111111
, graphql-api
112112
, hspec
113-
, protolude >=0.2
113+
, protolude >=0.2.1
114114
, raw-strings-qq
115115
, tasty
116116
, tasty-hspec
@@ -144,7 +144,7 @@ benchmark criterion
144144
, criterion
145145
, exceptions
146146
, graphql-api
147-
, protolude >=0.2
147+
, protolude >=0.2.1
148148
, transformers
149149
other-modules:
150150
Validation

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ default-extensions:
2020

2121
dependencies:
2222
- base >= 4.9 && < 5
23-
- protolude >= 0.2
23+
- protolude >= 0.2.1
2424
- exceptions
2525
- transformers
2626
- attoparsec

src/GraphQL/Internal/Schema.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module GraphQL.Internal.Schema
4040
, lookupType
4141
) where
4242

43-
import Protolude
43+
import Protolude hiding (Type)
4444

4545
import qualified Data.Map as Map
4646
import GraphQL.Value (Value)

src/GraphQL/Internal/Syntax/AST.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module GraphQL.Internal.Syntax.AST
4646
, TypeExtensionDefinition(..)
4747
) where
4848

49-
import Protolude
49+
import Protolude hiding (Type)
5050

5151
--import Data.String (IsString(..))
5252
import Test.QuickCheck (Arbitrary(..), listOf, oneof)

src/GraphQL/Internal/Validation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module GraphQL.Internal.Validation
5858
, findDuplicates
5959
) where
6060

61-
import Protolude hiding ((<>))
61+
import Protolude hiding ((<>), throwE)
6262

6363
import Data.List.NonEmpty (NonEmpty(..))
6464
import qualified Data.List.NonEmpty as NonEmpty

src/GraphQL/Resolver.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module GraphQL.Resolver
3030
-- - Directives (https://facebook.github.io/graphql/#sec-Type-System.Directives)
3131
-- - Enforce non-empty lists (might only be doable via value-level validation)
3232

33-
import Protolude hiding (Enum, TypeError)
33+
import Protolude hiding (Enum, TypeError, throwE)
3434

3535
import qualified Data.Text as Text
3636
import qualified Data.List.NonEmpty as NonEmpty

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ packages:
77
- "./graphql-wai"
88

99
extra-deps:
10-
- protolude-0.2
10+
- protolude-0.2.1

0 commit comments

Comments
 (0)