--- /dev/null
+import Distribution.Simple
+main = defaultMain
--- /dev/null
+name: lwn-epub
+version: 0.0
+cabal-version: >= 1.8
+author: Michael Orlitzky
+maintainer: Michael Orlitzky <michael@orlitzky.com>
+synopsis:
+ Convert issues of LWN (lwn.net) to EPUB format.
+build-type: Simple
+
+executable lwn-epub
+ build-depends:
+ base == 4.5.*
+
+ main-is:
+ Main.hs
+
+ hs-source-dirs:
+ src/
+
+ ghc-options:
+ -Wall
+ -fwarn-hi-shadowing
+ -fwarn-missing-signatures
+ -fwarn-name-shadowing
+ -fwarn-orphans
+ -fwarn-type-defaults
+ -fwarn-tabs
+ -fwarn-incomplete-record-updates
+ -fwarn-monomorphism-restriction
+ -fwarn-unused-do-bind
+ -funbox-strict-fields
+ -fexcess-precision
+ -fno-spec-constr-count
+ -rtsopts
+ -threaded
+ -O2
+ -optc-O3
+ -optc-march=native
--- /dev/null
+.PHONY : test publish_doc doc src_html hlint
+
+lwn-epub: src/*.hs
+ runghc Setup.hs clean
+ runghc Setup.hs configure --user --flags=${FLAGS}
+ runghc Setup.hs build
+
+clean:
+ runghc Setup.hs clean
+ rm -f dist/
+ rm -f *.prof
+ rm -rf .hpc
+
+
+# Neither 'haddock' nor 'hscolour' seem to work properly.
+doc: src_html
+ runghc Setup.hs hscolour --executables
+ runghc Setup.hs haddock --internal \
+ --executables \
+ --hyperlink-source
--- /dev/null
+module Main
+where
+
+
+main :: IO ()
+main = do
+ putStrLn "Hello, world."