From 574644b4dea79c12d3d5ebcd732820011a1ae8d2 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Tue, 9 Feb 2021 01:21:20 +0200 Subject: [PATCH] add back the "OPTIONS_GHC -Wno-orphans" --- src/Nix/Effects.hs | 3 +++ src/Nix/Exec.hs | 2 ++ src/Nix/Expr/Types.hs | 2 +- src/Nix/Fresh/Basic.hs | 1 + src/Nix/Standard.hs | 1 + src/Nix/Var.hs | 1 + 6 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Nix/Effects.hs b/src/Nix/Effects.hs index e40778f38..b44d914b3 100644 --- a/src/Nix/Effects.hs +++ b/src/Nix/Effects.hs @@ -13,6 +13,9 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} + + module Nix.Effects where import Prelude hiding ( putStr diff --git a/src/Nix/Exec.hs b/src/Nix/Exec.hs index 922cffbc3..f3417347f 100644 --- a/src/Nix/Exec.hs +++ b/src/Nix/Exec.hs @@ -15,8 +15,10 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} + module Nix.Exec where import Prelude hiding ( putStr diff --git a/src/Nix/Expr/Types.hs b/src/Nix/Expr/Types.hs index 60acaf02a..ab4ecdfa1 100644 --- a/src/Nix/Expr/Types.hs +++ b/src/Nix/Expr/Types.hs @@ -17,7 +17,7 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE InstanceSigs #-} - +{-# OPTIONS_GHC -Wno-orphans #-} {-# OPTIONS_GHC -Wno-missing-signatures #-} -- | The Nix expression type and supporting types. diff --git a/src/Nix/Fresh/Basic.hs b/src/Nix/Fresh/Basic.hs index 6c58538bb..e60aa0f34 100644 --- a/src/Nix/Fresh/Basic.hs +++ b/src/Nix/Fresh/Basic.hs @@ -5,6 +5,7 @@ {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeSynonymInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Nix.Fresh.Basic where diff --git a/src/Nix/Standard.hs b/src/Nix/Standard.hs index 538bcc5e7..18fc06cac 100644 --- a/src/Nix/Standard.hs +++ b/src/Nix/Standard.hs @@ -12,6 +12,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Nix.Standard where diff --git a/src/Nix/Var.hs b/src/Nix/Var.hs index 4eaffbecd..f4e67e116 100644 --- a/src/Nix/Var.hs +++ b/src/Nix/Var.hs @@ -3,6 +3,7 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Nix.Var where