From 1e0a7ec8f160d40a4a442d2583929c3a03271084 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 31 Jul 2018 09:30:08 +0100 Subject: [PATCH] remove some unneeded CPP pragmas --- hledger-lib/Hledger/Data/Amount.hs | 2 +- hledger-lib/Hledger/Data/Types.hs | 2 +- hledger-lib/Hledger/Reports/ReportOptions.hs | 2 +- hledger-lib/Hledger/Utils/Debug.hs | 2 +- hledger-lib/Hledger/Utils/Parse.hs | 2 +- hledger-web/Hledger/Web/Application.hs | 1 - hledger-web/Hledger/Web/Main.hs | 1 - hledger/Hledger/Cli/Utils.hs | 2 +- 8 files changed, 6 insertions(+), 8 deletions(-) diff --git a/hledger-lib/Hledger/Data/Amount.hs b/hledger-lib/Hledger/Data/Amount.hs index e2a7d67be..c4d2d63a7 100644 --- a/hledger-lib/Hledger/Data/Amount.hs +++ b/hledger-lib/Hledger/Data/Amount.hs @@ -40,7 +40,7 @@ exchange rates. -} -{-# LANGUAGE CPP, StandaloneDeriving, RecordWildCards, OverloadedStrings #-} +{-# LANGUAGE StandaloneDeriving, RecordWildCards, OverloadedStrings #-} module Hledger.Data.Amount ( -- * Amount diff --git a/hledger-lib/Hledger/Data/Types.hs b/hledger-lib/Hledger/Data/Types.hs index 12a5e02fa..73f472d2b 100644 --- a/hledger-lib/Hledger/Data/Types.hs +++ b/hledger-lib/Hledger/Data/Types.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE CPP, DeriveDataTypeable, StandaloneDeriving, DeriveGeneric, TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-} +{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving, DeriveGeneric, TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-} {-| Most data types are defined here to avoid import cycles. diff --git a/hledger-lib/Hledger/Reports/ReportOptions.hs b/hledger-lib/Hledger/Reports/ReportOptions.hs index a1e398b76..b84e403cf 100644 --- a/hledger-lib/Hledger/Reports/ReportOptions.hs +++ b/hledger-lib/Hledger/Reports/ReportOptions.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE CPP, RecordWildCards, DeriveDataTypeable #-} +{-# LANGUAGE RecordWildCards, DeriveDataTypeable #-} {-| Options common to most hledger reports. diff --git a/hledger-lib/Hledger/Utils/Debug.hs b/hledger-lib/Hledger/Utils/Debug.hs index e792fd8b4..567a3db27 100644 --- a/hledger-lib/Hledger/Utils/Debug.hs +++ b/hledger-lib/Hledger/Utils/Debug.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE CPP, FlexibleContexts, TypeFamilies #-} +{-# LANGUAGE FlexibleContexts, TypeFamilies #-} -- | Debugging helpers -- more: diff --git a/hledger-lib/Hledger/Utils/Parse.hs b/hledger-lib/Hledger/Utils/Parse.hs index a60a3d44c..fca8c6906 100644 --- a/hledger-lib/Hledger/Utils/Parse.hs +++ b/hledger-lib/Hledger/Utils/Parse.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE CPP, TypeFamilies #-} +{-# LANGUAGE TypeFamilies #-} module Hledger.Utils.Parse ( SimpleStringParser, diff --git a/hledger-web/Hledger/Web/Application.hs b/hledger-web/Hledger/Web/Application.hs index f80b8e137..7de1b16c3 100644 --- a/hledger-web/Hledger/Web/Application.hs +++ b/hledger-web/Hledger/Web/Application.hs @@ -1,5 +1,4 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} -{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ViewPatterns #-} diff --git a/hledger-web/Hledger/Web/Main.hs b/hledger-web/Hledger/Web/Main.hs index 2a8843f62..5e58dd867 100644 --- a/hledger-web/Hledger/Web/Main.hs +++ b/hledger-web/Hledger/Web/Main.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-| diff --git a/hledger/Hledger/Cli/Utils.hs b/hledger/Hledger/Cli/Utils.hs index 93d907373..bc5bfb365 100644 --- a/hledger/Hledger/Cli/Utils.hs +++ b/hledger/Hledger/Cli/Utils.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE ScopedTypeVariables, CPP #-} +{-# LANGUAGE ScopedTypeVariables #-} {-| Utilities for top-level modules and ghci. See also Hledger.Read and