From 9c5c4a77ccbd3fd963451c2c43248135a865d5a5 Mon Sep 17 00:00:00 2001 From: Ilya Rezvov Date: Sat, 28 Apr 2018 14:04:41 -0700 Subject: [PATCH] add exectuable sources --- exec/Main.hs | 5 +++++ package.yaml | 9 +++++++++ wasm.cabal | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 exec/Main.hs diff --git a/exec/Main.hs b/exec/Main.hs new file mode 100644 index 0000000..d1fd65c --- /dev/null +++ b/exec/Main.hs @@ -0,0 +1,5 @@ +module Main where + +main :: IO () +main = do + putStrLn "There is no WASM!" diff --git a/package.yaml b/package.yaml index 8598f1d..ba7529a 100644 --- a/package.yaml +++ b/package.yaml @@ -31,6 +31,15 @@ library: - containers >= 0.5 && <0.6 - utf8-string >= 1.0 +executables: + wasm: + source-dirs: exec + main: Wasm.hs + dependencies: + - wasm == 0.1.0 + - base + - optparse-applicative + tests: test: main: Test.hs diff --git a/wasm.cabal b/wasm.cabal index 187719a..e35ff41 100644 --- a/wasm.cabal +++ b/wasm.cabal @@ -50,6 +50,14 @@ library Paths_wasm default-language: Haskell2010 +executable wasm + main-is: Main.hs + hs-source-dirs: exec + build-depends: + base >=4.6 && <5.0 + , wasm ==0.1.0 + , optparse-applicative >= 0.13 + test-suite test type: exitcode-stdio-1.0 main-is: Test.hs