Skip to content

Commit

Permalink
Fix type signature of requestsOfType.
Browse files Browse the repository at this point in the history
The type signature needs to be slightly different on older ghc
versions (Typeable vs. Typeable1).
  • Loading branch information
Philipp Kant committed Jan 30, 2016
1 parent e757ad1 commit 46d9dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Haxl/Core/RequestStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ contents (RequestStore m) = Map.elems m

-- | Retrieves requests in the 'RequestStore' that have the same type
-- as a given request.
requestsOfType :: forall r a u . (Typeable r, Request r a) => r a -> RequestStore u -> [BlockedFetch r]
requestsOfType :: forall r a u . (DataSource u r, Request r a) => r a -> RequestStore u -> [BlockedFetch r]
requestsOfType _ (RequestStore rs) =
let ty = typeOf1 (undefined :: r a)
in case Map.lookup ty rs of
Expand Down

0 comments on commit 46d9dfd

Please sign in to comment.