summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-04-19 11:45:46 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-04-19 11:45:46 +0200
commitaf425841a63ee73603cc09510d95a36e646ddafd (patch)
tree08a1ef8435ec0ab07887256a1c86f908c2389a1a
parent8d9d27d64d9e39ea76fd878e928e553944735e45 (diff)
Build with stack
-rw-r--r--.gitignore8
-rw-r--r--AST.hs (renamed from ast.hs)0
-rw-r--r--Debug.hs (renamed from debug.hs)0
-rw-r--r--Main.hs (renamed from main.hs)0
-rw-r--r--Makefile16
-rw-r--r--Parser.hs (renamed from parser.hs)0
-rw-r--r--PrettyPrint.hs (renamed from prettyprint.hs)0
-rw-r--r--Simplify.hs (renamed from simplify.hs)0
-rw-r--r--Utility.hs (renamed from utility.hs)0
-rw-r--r--math.cabal16
-rw-r--r--stack.yaml6
11 files changed, 28 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index 2c67b73..babd9e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,8 @@
+main
*.o
*.hi
-*.hs[0-9]
-main
+.stack-work/
+.cabal-sandbox
+cabal.sandbox.config
+.DS_Store
+*.swp
diff --git a/ast.hs b/AST.hs
index d4c669b..d4c669b 100644
--- a/ast.hs
+++ b/AST.hs
diff --git a/debug.hs b/Debug.hs
index 437f91a..437f91a 100644
--- a/debug.hs
+++ b/Debug.hs
diff --git a/main.hs b/Main.hs
index b908807..b908807 100644
--- a/main.hs
+++ b/Main.hs
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 6d4ca8f..0000000
--- a/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-BIN = main
-
-hs_files = $(wildcard *.hs)
-
-.PHONY: all clean remake
-
-all: $(BIN)
-
-clean:
- rm -f *.hi *.o $(BIN)
-
-remake: clean all
-
-
-$(BIN): $(hs_files)
- ghc -O3 -o $(BIN) $^
diff --git a/parser.hs b/Parser.hs
index 636c04f..636c04f 100644
--- a/parser.hs
+++ b/Parser.hs
diff --git a/prettyprint.hs b/PrettyPrint.hs
index 45ca6ac..45ca6ac 100644
--- a/prettyprint.hs
+++ b/PrettyPrint.hs
diff --git a/simplify.hs b/Simplify.hs
index 9ae29f1..9ae29f1 100644
--- a/simplify.hs
+++ b/Simplify.hs
diff --git a/utility.hs b/Utility.hs
index a160cb7..a160cb7 100644
--- a/utility.hs
+++ b/Utility.hs
diff --git a/math.cabal b/math.cabal
new file mode 100644
index 0000000..9cf7d1a
--- /dev/null
+++ b/math.cabal
@@ -0,0 +1,16 @@
+name: math
+version: 0.1.0
+cabal-version: >= 1.10
+build-type: Simple
+license: MIT
+author: Tom Smeding
+maintainer: tom.smeding@gmail.com
+
+executable math
+ hs-source-dirs: .
+ main-is: Main.hs
+ default-language: Haskell2010
+ ghc-options: -Wall -O2
+ build-depends: base >= 4 && < 5,
+ containers, readline, deepseq
+ other-modules: AST, Debug, Parser, PrettyPrint, Simplify, Utility
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
index 0000000..261384c
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,6 @@
+flags: {}
+packages:
+- .
+extra-deps:
+- readline-1.0.3.0
+resolver: lts-11.2