From a00b30a632206b312279ff85b3f9f9ec080dfb72 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sat, 18 Apr 2020 08:55:23 +1200 Subject: [PATCH] Start a commandline version of HURL, currently 'Hello World'. --- hurl.cabal | 13 +++++++++++++ src/Main.hs | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 src/Main.hs 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!" -- 2.30.2