Skip to content

Commit

Permalink
Fix for #917: Generated Paths module broken with NoImplicitPrelude
Browse files Browse the repository at this point in the history
import Prelude explicitly
  • Loading branch information
dcoutts committed Mar 17, 2012
1 parent 398c6c0 commit 717a257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/Distribution/Simple/Build/PathsModule.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ generate pkg_descr lbi =
foreign_imports++
"import qualified Control.Exception as Exception\n"++
"import Data.Version (Version(..))\n"++
"import System.Environment (getEnv)"++
"import System.Environment (getEnv)\n"++
"import Prelude\n"++
"\n"++
"catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a\n"++
"catchIO = Exception.catch\n" ++
Expand Down

0 comments on commit 717a257

Please sign in to comment.