diff options
-rw-r--r-- | compiler/app/Main.hs | 4 | ||||
-rw-r--r-- | compiler/package.yaml | 9 | ||||
-rw-r--r-- | compiler/src/Compiler.hs | 7 | ||||
-rw-r--r-- | compiler/src/Config.hs | 7 | ||||
-rw-r--r-- | compiler/src/Files.hs | 6 | ||||
-rw-r--r-- | compiler/src/Input.hs | 7 | ||||
-rw-r--r-- | compiler/src/Processors.hs | 7 | ||||
-rw-r--r-- | compiler/src/Resource.hs | 7 |
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 | |||
23 | module Main where | 19 | module Main where |
24 | 20 | ||
25 | import Paths_ldgallery_compiler (version, getDataFileName) | 21 | 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: | |||
28 | - parallel-io | 28 | - parallel-io |
29 | - regex-compat | 29 | - regex-compat |
30 | 30 | ||
31 | default-extensions: | ||
32 | - DuplicateRecordFields | ||
33 | - DeriveGeneric | ||
34 | - DeriveDataTypeable | ||
35 | - DeriveAnyClass | ||
36 | - FlexibleContexts | ||
37 | - NamedFieldPuns | ||
38 | - OverloadedStrings | ||
39 | |||
31 | ghc-options: | 40 | ghc-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 | |||
26 | module Compiler | 19 | module 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 | |||
26 | module Config | 19 | module 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 | |||
25 | module Files | 19 | module 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 | |||
26 | module Input | 19 | module 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 | |||
26 | module Processors | 19 | module 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 | |||
26 | module Resource | 19 | module Resource |
27 | ( DirProcessor, ItemProcessor, ThumbnailProcessor | 20 | ( DirProcessor, ItemProcessor, ThumbnailProcessor |
28 | , GalleryItem(..), GalleryItemProps(..), Resolution(..) | 21 | , GalleryItem(..), GalleryItemProps(..), Resolution(..) |