diff --git a/.github/scripts/prepare_installer.sh b/.github/scripts/prepare_installer.sh index 79230fd9..ea10043f 100644 --- a/.github/scripts/prepare_installer.sh +++ b/.github/scripts/prepare_installer.sh @@ -42,6 +42,7 @@ if [ -z "$EXE_PATH" ]; then fi cp "$EXE_PATH" "$DEST_DIR_RELEASE/jbeam-edit.exe" +du -h "$EXE_PATH" echo "Copied exe to /$DEST_DIR_RELEASE/jbeam-edit.exe" LSP_EXE_PATH=$(find "$DIST_NEWSTYLE/build" -type f -name "jbeam-lsp-server.exe" | head -n 1) @@ -49,6 +50,7 @@ LSP_EXE_PATH=$(find "$DIST_NEWSTYLE/build" -type f -name "jbeam-lsp-server.exe" if [ -z "$LSP_EXE_PATH" ]; then echo "Error: No LSP exe found in '$DIST_NEWSTYLE/build', skipping." else + du -h "$LSP_EXE_PATH" cp "$LSP_EXE_PATH" "$DEST_DIR_RELEASE/jbeam-lsp-server.exe" echo "Copied exe to /$DEST_DIR_RELEASE/jbeam-lsp-server.exe" fi diff --git a/cabal.project b/cabal.project index 185175cb..35508581 100644 --- a/cabal.project +++ b/cabal.project @@ -1,6 +1,8 @@ packages: . optimization: False -tests: False + +package * + tests: False package jbeam-edit tests: False diff --git a/cabal.project.ci b/cabal.project.ci index 83d9959e..5183270b 100644 --- a/cabal.project.ci +++ b/cabal.project.ci @@ -1,9 +1,7 @@ import: cabal.project test-show-details: direct -program-options - ghc-options: -Werror - package jbeam-edit tests: True flags: +dump-ast +transformation +lsp-server -windows-example-paths + ghc-options: -Werror diff --git a/cabal.project.release b/cabal.project.release index a5346ba0..ad8e20cb 100644 --- a/cabal.project.release +++ b/cabal.project.release @@ -1,5 +1,6 @@ import: cabal.project executable-static: True +executable-stripping: True index-state: hackage.haskell.org 2025-10-12T21:52:54Z package * @@ -7,6 +8,10 @@ package * -threaded -rtsopts -with-rtsopts=-N + -split-sections + -optc-Os + -optl-static + -fignore-asserts package jbeam-edit tests: False diff --git a/jbeam-edit.cabal b/jbeam-edit.cabal index 20da3071..d7328deb 100644 --- a/jbeam-edit.cabal +++ b/jbeam-edit.cabal @@ -91,6 +91,7 @@ library -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints + -Wunused-packages build-depends: base >=4.17 && <5, @@ -135,7 +136,6 @@ library jbeam-edit-transformation directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -177,7 +177,6 @@ library jbeam-language-server directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -219,7 +218,6 @@ executable jbeam-edit directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -252,7 +250,6 @@ executable jbeam-edit-dump-ast directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -286,7 +283,6 @@ executable jbeam-lsp-server directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -318,7 +314,6 @@ executable jbeam-lsp-test-server directory, filepath, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -363,14 +358,15 @@ test-suite jbeam-edit-test filepath, hspec, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, vector if True - build-depends: hspec-megaparsec + build-depends: + hspec-megaparsec, + megaparsec test-suite jbeam-edit-transformation-test type: exitcode-stdio-1.0 @@ -394,7 +390,6 @@ test-suite jbeam-edit-transformation-test filepath, hspec, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, @@ -433,7 +428,6 @@ test-suite jbeam-language-server-test filepath, hspec, jbeam-edit, - megaparsec, mtl, scientific, text >=2.0, diff --git a/package.yaml b/package.yaml index f718d44c..f880456d 100644 --- a/package.yaml +++ b/package.yaml @@ -33,7 +33,6 @@ dependencies: - vector - text >= 2.0 - containers - - megaparsec - scientific - directory - filepath @@ -100,8 +99,10 @@ internal-libraries: <<: *jbeam-extra-lib library: + ghc-options: [-Wunused-packages] source-dirs: src generated-other-modules: Paths_jbeam_edit + dependencies: [megaparsec] when: - condition: flag(transformation) cpp-options: -DENABLE_TRANSFORMATION @@ -161,7 +162,7 @@ tests: source-dirs: test when: - condition: true - dependencies: [hspec-megaparsec] + dependencies: [megaparsec, hspec-megaparsec] jbeam-language-server-test: <<: *jbeam-test-common source-dirs: test-extra/language-server