From 65c8beecb14f6d09c49504d74beedd58cc7ddd17 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 7 Sep 2022 16:26:50 +0100 Subject: Better project layout, removed warnings --- micro2.cabal | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) (limited to 'micro2.cabal') 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 + -- cgit v1.2.3