add a temp main for making a single page
This commit is contained in:
parent
92ad510218
commit
ef7f2685c0
2 changed files with 12 additions and 1 deletions
|
@ -1,4 +1,14 @@
|
||||||
module Main (main) where
|
module Main (main) where
|
||||||
|
|
||||||
|
import System.Environment (getArgs)
|
||||||
|
import qualified Data.ByteString.Lazy as ByteString
|
||||||
|
import qualified Data.YAML as YAML
|
||||||
|
import qualified Data.Text.Lazy.IO as Text
|
||||||
|
import ImagePage
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = error "undefined: 'main' in Main.hs"
|
main = do
|
||||||
|
[file] <- getArgs
|
||||||
|
txt <- ByteString.readFile file
|
||||||
|
let Right info = YAML.decode1 txt
|
||||||
|
Text.putStr $ make info
|
||||||
|
|
|
@ -21,6 +21,7 @@ executable make-pages
|
||||||
base ^>= 4.12.0.0,
|
base ^>= 4.12.0.0,
|
||||||
containers ^>= 0.6.0.1,
|
containers ^>= 0.6.0.1,
|
||||||
time ^>= 1.8.0.2,
|
time ^>= 1.8.0.2,
|
||||||
|
bytestring ^>= 0.10.8.2,
|
||||||
text ^>= 1.2.3.1,
|
text ^>= 1.2.3.1,
|
||||||
vector ^>= 0.12.1.2,
|
vector ^>= 0.12.1.2,
|
||||||
HsYAML ^>= 0.2.1.0
|
HsYAML ^>= 0.2.1.0
|
||||||
|
|
Loading…
Reference in a new issue