aboutsummaryrefslogtreecommitdiff
path: root/micro2.cabal
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-07 16:26:50 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-07 16:26:50 +0100
commit65c8beecb14f6d09c49504d74beedd58cc7ddd17 (patch)
tree0a39cc6fc3f78153272c6528300936c039351d3e /micro2.cabal
parent48896c56c39344fa429260d3969eccc93ef8035c (diff)
downloadmicro-lang-hs-65c8beecb14f6d09c49504d74beedd58cc7ddd17.tar.gz
micro-lang-hs-65c8beecb14f6d09c49504d74beedd58cc7ddd17.zip
Better project layout, removed warnings
Diffstat (limited to 'micro2.cabal')
-rw-r--r--micro2.cabal42
1 files changed, 19 insertions, 23 deletions
diff --git a/micro2.cabal b/micro2.cabal
index 7eb355e..01c83f3 100644
--- a/micro2.cabal
+++ b/micro2.cabal
@@ -15,37 +15,23 @@ extra-source-files:
, README.md
, COPYING
-executable micro2
- main-is: Main.hs
- other-modules:
- Ast
- Lexer
- Parser
- Error
- Env
- Compiler
- build-depends:
- base ^>= 4.16.1.0
- , parsec ^>= 3.1.15.1
- , mtl ^>= 2.2.2
- , containers ^>= 0.6.5.1
- hs-source-dirs: src
- default-language: Haskell2010
-
library
exposed-modules:
- Ast
- Lexer
- Parser
- Error
- Env
- Compiler
+ Micro
+ Micro.Ast
+ Micro.Lexer
+ Micro.Parser
+ Micro.Error
+ Micro.Env
+ Micro.Compiler
+ Micro.Asm.Sdcc
build-depends:
base ^>= 4.16.1.0
, parsec ^>= 3.1.15.1
, mtl ^>= 2.2.2
, containers ^>= 0.6.5.1
hs-source-dirs: src
+ ghc-options: -Wall -Wno-name-shadowing
default-language: Haskell2010
test-suite tests
@@ -63,3 +49,13 @@ test-suite tests
hs-source-dirs: test
default-language: Haskell2010
+executable micro2
+ main-is: Main.hs
+ build-depends:
+ base ^>= 4.16.1.0
+ , containers ^>= 0.6.5.1
+ , mtl ^>= 2.2.2
+ , micro2
+ hs-source-dirs: app
+ default-language: Haskell2010
+