From 205722095450a487f2d5a7133d0802f2cc2ee856 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 5 Dec 2009 16:58:54 +0000 Subject: [PATCH] Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas --- Control/Monad/Instances.hs | 1 + GHC/Base.lhs | 2 ++ Text/Show/Functions.hs | 1 + 3 files changed, 4 insertions(+) diff --git a/Control/Monad/Instances.hs b/Control/Monad/Instances.hs index ae7ef65..6caf060 100644 --- a/Control/Monad/Instances.hs +++ b/Control/Monad/Instances.hs @@ -1,4 +1,5 @@ {-# OPTIONS_NHC98 --prelude #-} +-- This module deliberately declares orphan instances: {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------- -- | diff --git a/GHC/Base.lhs b/GHC/Base.lhs index 90c4c21..18d531a 100644 --- a/GHC/Base.lhs +++ b/GHC/Base.lhs @@ -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 #-} ----------------------------------------------------------------------------- diff --git a/Text/Show/Functions.hs b/Text/Show/Functions.hs index 8c76f4a..c66d2e3 100644 --- a/Text/Show/Functions.hs +++ b/Text/Show/Functions.hs @@ -1,3 +1,4 @@ +-- This module deliberately declares orphan instances: {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------- -- | -- 1.7.10.4