yesodweb/wai — Issue #41: Warp -Werror failure (Prelude catch deprecated for Control.Exception.catch)
Author: ecyrb
Created: 2012-02-01 18:31:38+00:00
State: open

```
Building warp-1.1.0...
[1 of 4] Compiling Paths_warp ( dist/build/autogen/Paths_warp.hs, dist/build/Paths_warp.o )

:
Failing due to -Werror.

Implicit import declaration:
Warning: In the use of `catch'
(imported from Prelude, but defined in System.IO.Error):
Deprecated: "Please use the new exceptions variant, Control.Exception.catch"
```

Bigger excerpt:

```
[...]
Building wai-handler-fastcgi-1.1.0...
[1 of 1] Compiling Network.Wai.Handler.FastCGI ( dist/build/Network/Wai/Handler/FastCGI.hs, dist/build/Network/Wai/Handler/FastCGI.o )
Registering wai-handler-fastcgi-1.1.0...
Installing library in
/home/bryce/.cabal/lib/wai-handler-fastcgi-1.1.0/ghc-7.2.2
Registering wai-handler-fastcgi-1.1.0...
Configuring wai-handler-scgi-1.1.0...
Preprocessing library wai-handler-scgi-1.1.0...
Building wai-handler-scgi-1.1.0...
Registering wai-handler-scgi-1.1.0...
Installing library in /home/bryce/.cabal/lib/wai-handler-scgi-1.1.0/ghc-7.2.2
Registering wai-handler-scgi-1.1.0...
Configuring wai-test-1.1.0...
Preprocessing library wai-test-1.1.0...
Building wai-test-1.1.0...
Registering wai-test-1.1.0...
Installing library in /home/bryce/.cabal/lib/wai-test-1.1.0/ghc-7.2.2
Registering wai-test-1.1.0...
Configuring warp-1.1.0...
Preprocessing library warp-1.1.0...
Preprocessing test suites for warp-1.1.0...
Building warp-1.1.0...
[1 of 4] Compiling Paths_warp ( dist/build/autogen/Paths_warp.hs, dist/build/Paths_warp.o )

:
Failing due to -Werror.

Implicit import declaration:
Warning: In the use of `catch'
(imported from Prelude, but defined in System.IO.Error):
Deprecated: "Please use the new exceptions variant, Control.Exception.catch"
cabal: Error: some packages failed to install:
wai-eventsource-1.1.0 depends on warp-1.1.0 which failed to install.
wai-handler-launch-1.1.0 depends on warp-1.1.0 which failed to install.
wai-websockets-1.1.0 depends on warp-1.1.0 which failed to install.
warp-1.1.0 failed during the building phase. The exception was:
ExitFailure 1
warp-static-1.1.0 depends on warp-1.1.0 which failed to install.
warp-tls-1.1.0 depends on warp-1.1.0 which failed to install.
installation failure!
If you are just installing and haven't mucked with the code,
please report this to the mail list at http://groups.google.com/group/yesodweb
or on the issue tracker at http://github.com/yesodweb/issues
```

I'm sure I'm doing something wrong, so I apologize in advance.