aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2020-01-05 16:42:09 +0100
committerpacien2020-01-05 16:42:09 +0100
commitee222b40569b9f40c482dd9df518f6445c1c304d (patch)
tree84c31fb9618681e2eac5c0e033851ada19bae617
parent9dd271504160b624284dbc438cdc867b6ca0d0e7 (diff)
downloadldgallery-ee222b40569b9f40c482dd9df518f6445c1c304d.tar.gz
compiler: enable language extensions on whole project
-rw-r--r--compiler/app/Main.hs4
-rw-r--r--compiler/package.yaml9
-rw-r--r--compiler/src/Compiler.hs7
-rw-r--r--compiler/src/Config.hs7
-rw-r--r--compiler/src/Files.hs6
-rw-r--r--compiler/src/Input.hs7
-rw-r--r--compiler/src/Processors.hs7
-rw-r--r--compiler/src/Resource.hs7
8 files changed, 9 insertions, 45 deletions
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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DeriveDataTypeable
21#-}
22
23module Main where 19module Main where
24 20
25import Paths_ldgallery_compiler (version, getDataFileName) 21import 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:
28- parallel-io 28- parallel-io
29- regex-compat 29- regex-compat
30 30
31default-extensions:
32- DuplicateRecordFields
33- DeriveGeneric
34- DeriveDataTypeable
35- DeriveAnyClass
36- FlexibleContexts
37- NamedFieldPuns
38- OverloadedStrings
39
31ghc-options: 40ghc-options:
32- -Wall 41- -Wall
33- -Wcompat 42- -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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , DeriveAnyClass
23 , NamedFieldPuns
24#-}
25
26module Compiler 19module Compiler
27 ( compileGallery 20 ( compileGallery
28 ) where 21 ) 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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , DeriveAnyClass
23 , OverloadedStrings
24#-}
25
26module Config 19module Config
27 ( GalleryConfig(..) 20 ( GalleryConfig(..)
28 , CompilerConfig(..) 21 , 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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , NamedFieldPuns
23#-}
24
25module Files 19module Files
26 ( FileName, LocalPath, WebPath, Path 20 ( FileName, LocalPath, WebPath, Path
27 , (</>), (</), (/>), (<.>) 21 , (</>), (</), (/>), (<.>)
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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , DeriveAnyClass
23 , NamedFieldPuns
24#-}
25
26module Input 19module Input
27 ( decodeYamlFile 20 ( decodeYamlFile
28 , Sidecar(..) 21 , 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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , DeriveAnyClass
23 , FlexibleContexts
24#-}
25
26module Processors 19module Processors
27 ( Resolution(..) 20 ( Resolution(..)
28 , DirFileProcessor, dirFileProcessor 21 , 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 @@
16-- You should have received a copy of the GNU Affero General Public License 16-- You should have received a copy of the GNU Affero General Public License
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
19{-# LANGUAGE
20 DuplicateRecordFields
21 , DeriveGeneric
22 , DeriveAnyClass
23 , NamedFieldPuns
24#-}
25
26module Resource 19module Resource
27 ( DirProcessor, ItemProcessor, ThumbnailProcessor 20 ( DirProcessor, ItemProcessor, ThumbnailProcessor
28 , GalleryItem(..), GalleryItemProps(..), Resolution(..) 21 , GalleryItem(..), GalleryItemProps(..), Resolution(..)