File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import Data.Text as T (Text)
25
25
import qualified Data.Attoparsec.Text as A
26
26
import Test.QuickCheck (Arbitrary (.. ), elements , listOf )
27
27
import Data.String (IsString (.. ))
28
- import Data.Text as T (Text , append , empty )
29
28
30
29
import GraphQL.Internal.Syntax.Tokens (tok )
31
30
@@ -36,14 +35,6 @@ import GraphQL.Internal.Syntax.Tokens (tok)
36
35
-- https://facebook.github.io/graphql/#sec-Names
37
36
newtype Name = Name { unName :: T. Text } deriving (Eq , Ord , Show )
38
37
39
- -- | Allow Name to be parsed with `optempty`
40
- --
41
- -- Example: node = AST.Node <$> optempty nameParser
42
- -- I.e. If nameParser fails, the Name field of AST.Node is set
43
- -- mempty rather than propagating a failure.
44
- instance Monoid Name where
45
- mempty = Name T. empty
46
- mappend (Name a1) (Name a2) = Name (T. append a1 a2)
47
38
48
39
-- | Create a 'Name', panicking if the given text is invalid.
49
40
--
You can’t perform that action at this time.
0 commit comments