import Config
import IOExts
-import Exception ( tryAllIO, Exception(DynException) )
+import Exception
import Dynamic ( fromDynamic )
import Directory
import List ( isSuffixOf )
}}
else
- ioToRnM_no_fail (tryAllIO (Binary.getBinFileWithDict file_path))
+ ioToRnM_no_fail (myTry (Binary.getBinFileWithDict file_path))
`thenRn` \ either_iface ->
case either_iface of
loc = mkSrcLoc (mkFastString file_path) 1
bale_out err = returnRn (Left (badIfaceFile file_path err))
+
+#if __GLASGOW_HASKELL__ < 501
+myTry = Exception.tryAllIO
+#else
+myTry = Exception.try
+#endif
\end{code}
%*********************************************************