From cff25673b99a4e776b97635e59308f6957b38ccd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar@debian.org>
Date: Sun, 19 Jun 2011 23:29:54 +0200
Subject: [PATCH 3/3] Continue using Control.OldException with GHC 6.12

We also need to build without -Werror as OldException are very much deprecated.
---
 src/TorDNSEL/Compat/Exception.hs |    2 +-
 tordnsel.cabal                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TorDNSEL/Compat/Exception.hs b/src/TorDNSEL/Compat/Exception.hs
index b206513..73249ce 100644
--- a/src/TorDNSEL/Compat/Exception.hs
+++ b/src/TorDNSEL/Compat/Exception.hs
@@ -19,7 +19,7 @@ module TorDNSEL.Compat.Exception (
     module Exception
   ) where
 
-#if __GLASGOW_HASKELL__ == 610
+#if (__GLASGOW_HASKELL__ == 610) || (__GLASGOW_HASKELL__ == 612)
 import Control.OldException as Exception
 #else
 import Control.Exception as Exception
diff --git a/tordnsel.cabal b/tordnsel.cabal
index b932533..a7942ca 100644
--- a/tordnsel.cabal
+++ b/tordnsel.cabal
@@ -59,7 +59,7 @@ Other-Modules:   TorDNSEL.Config,
 HS-Source-Dirs:  src
 Includes:        sys/types.h, unistd.h, sysexits.h, netinet/in.h, openssl/rand.h
 Extra-Libraries: crypto
-GHC-Options:     -O2 -Wall -Werror
+GHC-Options:     -O2 -Wall
 CPP-Options:     -DVERSION="0.0.6-dev"
 
 Executable:      runtests
-- 
1.7.2.5

