diff options
-rw-r--r-- | .gitignore | 8 | ||||
-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-- | Makefile | 16 | ||||
-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.cabal | 16 | ||||
-rw-r--r-- | stack.yaml | 6 |
11 files changed, 28 insertions, 18 deletions
@@ -1,4 +1,8 @@ +main *.o *.hi -*.hs[0-9] -main +.stack-work/ +.cabal-sandbox +cabal.sandbox.config +.DS_Store +*.swp 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/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/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 |