graphql-engine/server/lib/schema-parsers/test/Hasura/GraphQL/Parser/TestInstances.hs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
556 B
Haskell
Raw Normal View History

{-# OPTIONS_GHC -Wno-orphans #-}
module Hasura.GraphQL.Parser.TestInstances () where
import Data.Text qualified as Text
import Hasura.Base.ErrorMessage (ErrorMessage, fromErrorMessage)
import Hasura.GraphQL.Parser.Monad (ParseError (..))
-- Orphan instances so that we can write assertions over 'Either ErrorMessage a'.
instance Show ErrorMessage where
show = Text.unpack . fromErrorMessage
-- Orphan instances so that we can write assertions over 'Either ParseError a'.
deriving stock instance Eq ParseError
deriving stock instance Show ParseError