From 49633289911c00addd869e38581ff73e23f13e5f Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Wed, 18 Sep 2013 10:15:28 +0200 Subject: Add missing `traverse` method for `GenLocated` As `Traversable` needs at least one of `traverse` or `sequenceA` to be overridden. Signed-off-by: Herbert Valerio Riedel --- src/Haddock/GhcUtils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Haddock/GhcUtils.hs b/src/Haddock/GhcUtils.hs index 82ccb590..467541fc 100644 --- a/src/Haddock/GhcUtils.hs +++ b/src/Haddock/GhcUtils.hs @@ -182,7 +182,7 @@ instance Foldable (GenLocated l) where instance Traversable (GenLocated l) where mapM f (L l x) = (return . L l) =<< f x - + traverse f (L l x) = L l <$> f x ------------------------------------------------------------------------------- -- * NamedThing instances -- cgit v1.2.3