1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Correct the type of the comparison helper.

This commit is contained in:
Rob Rix 2018-04-25 18:49:22 -04:00
parent f3e6a7fca3
commit b75ff20fb3

View File

@ -306,7 +306,7 @@ instance ( Monad (m effects)
where
-- Explicit type signature is necessary here because we're passing all sorts of things
-- to these comparison functions.
go :: (Ord a, MonadValue location value effects m) => a -> a -> m effects value
go :: Ord a => a -> a -> m effects (Value location)
go l r = case comparator of
Concrete f -> boolean (f l r)
Generalized -> integer (orderingToInt (compare l r))