Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas
authorIan Lynagh <igloo@earth.li>
Sat, 5 Dec 2009 16:58:54 +0000 (16:58 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 5 Dec 2009 16:58:54 +0000 (16:58 +0000)
Control/Monad/Instances.hs
GHC/Base.lhs
Text/Show/Functions.hs

index ae7ef65..6caf060 100644 (file)
@@ -1,4 +1,5 @@
 {-# OPTIONS_NHC98 --prelude #-}
+-- This module deliberately declares orphan instances:
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 -----------------------------------------------------------------------------
 -- |
index 90c4c21..18d531a 100644 (file)
@@ -63,6 +63,8 @@ Other Prelude modules are much easier with fewer complex dependencies.
 
 \begin{code}
 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
+-- -fno-warn-orphans is needed for things like:
+-- Orphan rule: "x# -# x#" ALWAYS forall x# :: Int# -# x# x# = 0
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 {-# OPTIONS_HADDOCK hide #-}
 -----------------------------------------------------------------------------
index 8c76f4a..c66d2e3 100644 (file)
@@ -1,3 +1,4 @@
+-- This module deliberately declares orphan instances:
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 -----------------------------------------------------------------------------
 -- |