$OpenBSD: patch-haddock_cabal,v 1.1 2010/04/22 21:49:12 kili Exp $
--- haddock.cabal.orig	Tue Mar 16 01:47:29 2010
+++ haddock.cabal	Tue Apr 13 20:13:50 2010
@@ -132,8 +132,10 @@ library
     containers,
     array,
     Cabal >= 1.5,
-    ghc >= 6.12 && < 6.14,
-    ghc-paths
+    ghc >= 6.12 && < 6.14
+
+  if !flag(in-ghc-tree)
+    build-depends: ghc-paths
 
   if flag(test)
     cpp-options: -DTEST
