Remove unused QueryError.TransformationError

This commit is contained in:
2021-05-11 07:11:47 +02:00
parent 1af95345d2
commit f671645043
4 changed files with 20 additions and 28 deletions

View File

@ -14,7 +14,7 @@ module Language.GraphQL.Execute.Internal
import Control.Monad.Trans.State (modify)
import Control.Monad.Catch (MonadCatch)
import Data.Sequence ((|>))
import Data.Text (Text)
import qualified Data.Text as Text
import Language.GraphQL.Execute.Coerce
import Language.GraphQL.Error
( CollectErrsT
@ -32,5 +32,6 @@ addError returnValue error' = modify appender >> pure returnValue
{ errors = errors |> error'
}
singleError :: Serialize b => forall a. Text -> Either a (Response b)
singleError message = Right $ Response null $ pure $ Error message [] []
singleError :: Serialize b => forall a. String -> Either a (Response b)
singleError message =
Right $ Response null $ pure $ Error (Text.pack message) [] []