diff options
| author | Eugen Wissner <belka@caraus.de> | 2022-08-24 22:33:20 +0300 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2022-10-01 18:11:51 +0200 |
| commit | 92463f7c4a9be2581aa5f6913762a8de393c4924 (patch) | |
| tree | 8a0d994a7705224221bb46f8641d8caa186b79c1 /src/Language/GraphQL/Class.hs | |
| parent | 53ce65d7137a983df43056a3ea33d31054afd5fc (diff) | |
| download | graphql-spice-92463f7c4a9be2581aa5f6913762a8de393c4924.tar.gz | |
Add Resolver module with helpers and exceptions
Diffstat (limited to 'src/Language/GraphQL/Class.hs')
| -rw-r--r-- | src/Language/GraphQL/Class.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/GraphQL/Class.hs b/src/Language/GraphQL/Class.hs index 66a0b2b..3f52a13 100644 --- a/src/Language/GraphQL/Class.hs +++ b/src/Language/GraphQL/Class.hs @@ -24,7 +24,7 @@ fromGraphQLToIntegral (Type.Int value) = Just $ fromIntegral value fromGraphQLToIntegral (Type.String value) = case Text.Read.decimal value of Right (converted, "") -> Just converted - _ -> Nothing + _conversionError -> Nothing fromGraphQLToIntegral _ = Nothing -- | Instances of this typeclass can be converted to GraphQL internal |
