diff options
| author | Eugen Wissner <belka@caraus.de> | 2022-12-24 18:59:40 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2022-12-24 18:59:40 +0100 |
| commit | a5cf0a32e82dbf6e093ebca47917a84276332b63 (patch) | |
| tree | e313fce5490ea868aa484ca377b753c41b43ad8c /src | |
| parent | 2f9881bb211fa40361a745078ed790e19747c801 (diff) | |
| download | graphql-1.1.0.0.tar.gz | |
Replace ">> pure ()" with voidv1.1.0.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/Language/GraphQL/AST/Lexer.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Language/GraphQL/AST/Lexer.hs b/src/Language/GraphQL/AST/Lexer.hs index ecefaf6..ab1f36f 100644 --- a/src/Language/GraphQL/AST/Lexer.hs +++ b/src/Language/GraphQL/AST/Lexer.hs @@ -58,6 +58,7 @@ import qualified Text.Megaparsec.Char.Lexer as Lexer import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Lazy as TL +import Control.Monad (void) -- | Standard parser. -- Accepts the type of the parsed token. @@ -93,7 +94,7 @@ dollar = symbol "$" -- | Parser for "@". at :: Parser () -at = symbol "@" >> pure () +at = void $ symbol "@" -- | Parser for "&". amp :: Parser T.Text @@ -101,7 +102,7 @@ amp = symbol "&" -- | Parser for ":". colon :: Parser () -colon = symbol ":" >> pure () +colon = void $ symbol ":" -- | Parser for "=". equals :: Parser T.Text @@ -220,7 +221,7 @@ escapeSequence = do -- | Parser for the "Byte Order Mark". unicodeBOM :: Parser () -unicodeBOM = optional (char '\xfeff') >> pure () +unicodeBOM = void $ optional $ char '\xfeff' -- | Parses "extend" followed by a 'symbol'. It is used by schema extensions. extend :: forall a. Text -> String -> NonEmpty (Parser a) -> Parser a |
