make it compile with 4.08 (module author may very reasonably want to abstract away the ifdef this commit intros.)
import FIX_IO ( fixIO )
import Maybe ( mapMaybe )
import List ( nub )
-import EXCEPTION as Exception ( try, Exception )
+import EXCEPTION as Exception
\end{code}
\begin{code}
tryM :: TcRn m r -> TcRn m (Either Exception.Exception r)
-- Reflect exception into TcRn monad
+#if __GLASGOW_HASKELL__ <= 408
+tryM (TcRn thing) = TcRn (\ env -> Exception.tryAllIO (thing env))
+#else
tryM (TcRn thing) = TcRn (\ env -> Exception.try (thing env))
+#endif
\end{code}
Lazy interleave