Skip to content

Commit d27f591

Browse files
committed
Add Data.Text import and clean up unused imports.
Was compiling before, but Name was using Text from some place else.
1 parent 05fc62b commit d27f591

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GraphQL/Internal/Name.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ import Protolude
2121
import qualified Data.Aeson as Aeson
2222
import GHC.TypeLits (Symbol, KnownSymbol, symbolVal)
2323
import Data.Char (isDigit)
24+
import Data.Text as T (Text)
2425
import qualified Data.Attoparsec.Text as A
2526
import Test.QuickCheck (Arbitrary(..), elements, listOf)
2627
import Data.String (IsString(..))
2728

28-
import GraphQL.Internal.Arbitrary (arbitraryText)
2929
import GraphQL.Internal.Syntax.Tokens (tok)
3030

3131
-- * Name
3232

3333
-- | A name in GraphQL.
3434
--
3535
-- https://facebook.github.io/graphql/#sec-Names
36-
newtype Name = Name { unName :: Text } deriving (Eq, Ord, Show)
36+
newtype Name = Name { unName :: T.Text } deriving (Eq, Ord, Show)
3737

3838
-- | Create a 'Name', panicking if the given text is invalid.
3939
--

src/GraphQL/Internal/Syntax/AST.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module GraphQL.Internal.Syntax.AST
4848

4949
import Protolude
5050

51-
import Data.String (IsString(..))
51+
--import Data.String (IsString(..))
5252
import Test.QuickCheck (Arbitrary(..), elements, listOf, oneof)
5353

5454
import GraphQL.Internal.Arbitrary (arbitraryText)

0 commit comments

Comments
 (0)