summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Cochrane <adrian@openwork.nz>2020-04-18 08:55:23 +1200
committerAdrian Cochrane <adrian@openwork.nz>2020-04-18 08:55:23 +1200
commita00b30a632206b312279ff85b3f9f9ec080dfb72 (patch)
tree31be9a3d4e0b9e9e4356b2496c9995a71af139d2
parent984867b7a2acdcdc46cd340ecb0e778582d1dc0f (diff)
downloadhurl-a00b30a632206b312279ff85b3f9f9ec080dfb72.tar.gz
hurl-a00b30a632206b312279ff85b3f9f9ec080dfb72.tar.bz2
hurl-a00b30a632206b312279ff85b3f9f9ec080dfb72.zip
Start a commandline version of HURL, currently 'Hello World'.
-rw-r--r--hurl.cabal13
-rw-r--r--src/Main.hs5
2 files changed, 18 insertions, 0 deletions
diff --git a/hurl.cabal b/hurl.cabal
index 7688511..94917b2 100644
--- a/hurl.cabal
+++ b/hurl.cabal
@@ -123,3 +123,16 @@ library
CPP-options: -DWITH_APPSTREAM
build-depends: xml-conduit >=1.8 && < 1.9, zlib >= 0.6 && < 0.7, containers
other-modules: Network.URI.XDG.AppStream, Network.URI.XDG.AppStreamOutput
+
+executable hurl
+ -- .hs file containing the Main module
+ main-is: Main.hs
+
+ -- Other library packages from which modules are imported
+ build-depends: base >=4.9 && <=4.12, hurl
+
+ -- Directories containing source files.
+ hs-source-dirs: src
+
+ -- Base language which the package is written in.
+ default-language: Haskell2010
diff --git a/src/Main.hs b/src/Main.hs
new file mode 100644
index 0000000..5105a9b
--- /dev/null
+++ b/src/Main.hs
@@ -0,0 +1,5 @@
+module Main where
+
+main :: IO ()
+main = do
+ putStrLn "Hello, world!"