diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-05-11 07:11:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-05-11 07:11:47 +0200 |
| commit | f671645043b8d9e148ed96c3a26aa268ef0ff7b5 (patch) | |
| tree | 717eb1a261163b82dbbe6af66505ad5e25634fd2 /src/Language/GraphQL/Execute/Internal.hs | |
| parent | 1af95345d21ecfaa0823cc5343d2ccc83c89d449 (diff) | |
| download | graphql-f671645043b8d9e148ed96c3a26aa268ef0ff7b5.tar.gz | |
Remove unused QueryError.TransformationError
Diffstat (limited to 'src/Language/GraphQL/Execute/Internal.hs')
| -rw-r--r-- | src/Language/GraphQL/Execute/Internal.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Language/GraphQL/Execute/Internal.hs b/src/Language/GraphQL/Execute/Internal.hs index 792a758..7e4e4a9 100644 --- a/src/Language/GraphQL/Execute/Internal.hs +++ b/src/Language/GraphQL/Execute/Internal.hs @@ -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) [] [] |
