Validate anonymous operation definitions

This commit is contained in:
2020-08-26 18:58:48 +02:00
parent 7355533268
commit e6a6926e18
5 changed files with 64 additions and 12 deletions

View File

@ -62,6 +62,12 @@ data Location = Location
, column :: Word
} deriving (Eq, Show)
instance Ord Location where
compare (Location thisLine thisColumn) (Location thatLine thatColumn)
| thisLine < thatLine = LT
| thisLine > thatLine = GT
| otherwise = compare thisColumn thatColumn
-- ** Document
-- | GraphQL document.