Skip to content

Commit b477b11

Browse files
committed
Close #118
Made the change to monadic. It seems self-contained to me, so I'm wondering why this would be a breaking change as mentioned in issue
1 parent 6f76aa1 commit b477b11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQL/Resolver.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ instance forall m hg. (Monad m, Applicative m, HasResolver m hg) => HasResolver
207207
map aggregateResults a
208208

209209
instance forall m ksN enum. (Applicative m, API.GraphQLEnum enum) => HasResolver m (API.Enum ksN enum) where
210-
type Handler m (API.Enum ksN enum) = enum
211-
resolve handler Nothing = (pure . ok . GValue.ValueEnum . API.enumToValue) handler
210+
type Handler m (API.Enum ksN enum) = m enum
211+
resolve handler Nothing = map (ok . GValue.ValueEnum . API.enumToValue) handler
212212
resolve _ (Just ss) = throwE (SubSelectionOnLeaf ss)
213213

214214
instance forall m hg. (HasResolver m hg, Monad m) => HasResolver m (Maybe hg) where

0 commit comments

Comments
 (0)