From ee222b40569b9f40c482dd9df518f6445c1c304d Mon Sep 17 00:00:00 2001
From: pacien
Date: Sun, 5 Jan 2020 16:42:09 +0100
Subject: compiler: enable language extensions on whole project
---
compiler/app/Main.hs | 4 ----
compiler/package.yaml | 9 +++++++++
compiler/src/Compiler.hs | 7 -------
compiler/src/Config.hs | 7 -------
compiler/src/Files.hs | 6 ------
compiler/src/Input.hs | 7 -------
compiler/src/Processors.hs | 7 -------
compiler/src/Resource.hs | 7 -------
8 files changed, 9 insertions(+), 45 deletions(-)
(limited to 'compiler')
diff --git a/compiler/app/Main.hs b/compiler/app/Main.hs
index 43a8aeb..1a42abf 100644
--- a/compiler/app/Main.hs
+++ b/compiler/app/Main.hs
@@ -16,10 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DeriveDataTypeable
-#-}
-
module Main where
import Paths_ldgallery_compiler (version, getDataFileName)
diff --git a/compiler/package.yaml b/compiler/package.yaml
index f93c146..f7fb22a 100644
--- a/compiler/package.yaml
+++ b/compiler/package.yaml
@@ -28,6 +28,15 @@ dependencies:
- parallel-io
- regex-compat
+default-extensions:
+- DuplicateRecordFields
+- DeriveGeneric
+- DeriveDataTypeable
+- DeriveAnyClass
+- FlexibleContexts
+- NamedFieldPuns
+- OverloadedStrings
+
ghc-options:
- -Wall
- -Wcompat
diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs
index f4b38d0..b9f52e5 100644
--- a/compiler/src/Compiler.hs
+++ b/compiler/src/Compiler.hs
@@ -16,13 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , DeriveAnyClass
- , NamedFieldPuns
-#-}
-
module Compiler
( compileGallery
) where
diff --git a/compiler/src/Config.hs b/compiler/src/Config.hs
index c6d77af..b9434ba 100644
--- a/compiler/src/Config.hs
+++ b/compiler/src/Config.hs
@@ -16,13 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , DeriveAnyClass
- , OverloadedStrings
-#-}
-
module Config
( GalleryConfig(..)
, CompilerConfig(..)
diff --git a/compiler/src/Files.hs b/compiler/src/Files.hs
index 291a1c5..51e97e6 100644
--- a/compiler/src/Files.hs
+++ b/compiler/src/Files.hs
@@ -16,12 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , NamedFieldPuns
-#-}
-
module Files
( FileName, LocalPath, WebPath, Path
, (>), (), (/>), (<.>)
diff --git a/compiler/src/Input.hs b/compiler/src/Input.hs
index ab2bc3c..02f79f0 100644
--- a/compiler/src/Input.hs
+++ b/compiler/src/Input.hs
@@ -16,13 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , DeriveAnyClass
- , NamedFieldPuns
-#-}
-
module Input
( decodeYamlFile
, Sidecar(..)
diff --git a/compiler/src/Processors.hs b/compiler/src/Processors.hs
index 6ee8c78..e10dc21 100644
--- a/compiler/src/Processors.hs
+++ b/compiler/src/Processors.hs
@@ -16,13 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , DeriveAnyClass
- , FlexibleContexts
-#-}
-
module Processors
( Resolution(..)
, DirFileProcessor, dirFileProcessor
diff --git a/compiler/src/Resource.hs b/compiler/src/Resource.hs
index c09b77a..19bd32c 100644
--- a/compiler/src/Resource.hs
+++ b/compiler/src/Resource.hs
@@ -16,13 +16,6 @@
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see .
-{-# LANGUAGE
- DuplicateRecordFields
- , DeriveGeneric
- , DeriveAnyClass
- , NamedFieldPuns
-#-}
-
module Resource
( DirProcessor, ItemProcessor, ThumbnailProcessor
, GalleryItem(..), GalleryItemProps(..), Resolution(..)
--
cgit v1.2.3