diff options
author | zeroinformatique | 2022-11-11 00:29:42 +0100 |
---|---|---|
committer | GitHub | 2022-11-11 00:29:42 +0100 |
commit | ddadf9798b7f874aa0a829d55987ec0d105efa6d (patch) | |
tree | f208efeec53d97dd53cbd61f6fe4dfe824d8754c /compiler/app | |
parent | bb3b0eae37a7214a3a4a6a1e4354e6f082adf15e (diff) | |
parent | 7ae7e904303dd623398495c2d61d1acadfe96fb1 (diff) | |
download | ldgallery-ddadf9798b7f874aa0a829d55987ec0d105efa6d.tar.gz |
Merge pull request #346 from ldgallery/p_compiler_logging
compiler: fix support for non-utf8 terminals, add more steps prints
Diffstat (limited to 'compiler/app')
-rw-r--r-- | compiler/app/Main.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/app/Main.hs b/compiler/app/Main.hs index 3e6f254..a9630ce 100644 --- a/compiler/app/Main.hs +++ b/compiler/app/Main.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | -- ldgallery - A static generator which turns a collection of tagged | 1 | -- ldgallery - A static generator which turns a collection of tagged |
2 | -- pictures into a searchable web gallery. | 2 | -- pictures into a searchable web gallery. |
3 | -- | 3 | -- |
4 | -- Copyright (C) 2019-2021 Pacien TRAN-GIRARD | 4 | -- Copyright (C) 2019-2022 Pacien TRAN-GIRARD |
5 | -- | 5 | -- |
6 | -- This program is free software: you can redistribute it and/or modify | 6 | -- This program is free software: you can redistribute it and/or modify |
7 | -- it under the terms of the GNU Affero General Public License as | 7 | -- it under the terms of the GNU Affero General Public License as |
@@ -28,6 +28,7 @@ import Data.Aeson (ToJSON) | |||
28 | import System.FilePath ((</>)) | 28 | import System.FilePath ((</>)) |
29 | import System.Directory (canonicalizePath, listDirectory) | 29 | import System.Directory (canonicalizePath, listDirectory) |
30 | import System.Console.CmdArgs | 30 | import System.Console.CmdArgs |
31 | import Main.Utf8 (withUtf8) | ||
31 | 32 | ||
32 | import Compiler | 33 | import Compiler |
33 | import Files (readDirectory, copyTo, remove) | 34 | import Files (readDirectory, copyTo, remove) |
@@ -103,7 +104,7 @@ options = Options | |||
103 | 104 | ||
104 | main :: IO () | 105 | main :: IO () |
105 | main = | 106 | main = |
106 | do | 107 | withUtf8 $ do |
107 | opts <- cmdArgs options | 108 | opts <- cmdArgs options |
108 | buildGallery opts | 109 | buildGallery opts |
109 | deployViewer opts | 110 | deployViewer opts |