Skip to content

Commit 744faf7

Browse files
geo2agithub-actions
and
github-actions
authored
Clean-up the executables in package kore (#3811)
Part of #3800 - remove `kore-check-functions`, `kore-format` and `kore-simplify` - Move `kore-parser` and `kore-match-disjunction` to the `hs-backend-booster-dev-tools` package Before merging, we should run the integration tests of K to make sure nothing is broken. --------- Co-authored-by: github-actions <[email protected]>
1 parent 9ec5ff6 commit 744faf7

File tree

12 files changed

+41
-553
lines changed

12 files changed

+41
-553
lines changed

Makefile

+2-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,16 @@ include include.mk
22

33
.PHONY: all kore clean clean-execution docs haddock \
44
test test-kore test-k test-k-simplifierx test-simplifierx \
5-
kore-exec kore-repl kore-parser kore-check-functions \
6-
kore-format kore-match-disjunction
5+
kore-exec kore-repl
76

8-
all: kore-exec kore-repl kore-parser kore-check-functions kore-format \
9-
kore-match-disjunction
7+
all: kore-exec kore-repl
108

119
kore: all
1210

1311
kore-exec: $(KORE_EXEC)
1412

1513
kore-repl: $(KORE_REPL)
1614

17-
kore-parser: $(KORE_PARSER)
18-
19-
kore-check-functions: $(KORE_CHECK_FUNCTIONS)
20-
21-
kore-format: $(KORE_FORMAT)
22-
23-
kore-match-disjunction: $(KORE_MATCH_DISJUNCTION)
24-
2515
docs: haddock
2616

2717
haddock:

kore/app/match-disjunction/Main.hs dev-tools/kore-match-disjunction/Main.hs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{-# LANGUAGE PatternSynonyms #-}
2+
{-# LANGUAGE NoImplicitPrelude #-}
3+
14
module Main (main) where
25

36
import GlobalMain

kore/app/parser/Main.hs dev-tools/kore-parser/Main.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE NoImplicitPrelude #-}
2+
13
module Main (main) where
24

35
import Control.Monad.Catch (

dev-tools/package.yaml

+28-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ executables:
8686
- text
8787
- transformers
8888
ghc-options:
89-
- -rtsopts
89+
- -rtsopts
9090
parsetest-binary:
9191
source-dirs: parsetest-binary
9292
main: ParsetestBinary.hs
@@ -98,7 +98,7 @@ executables:
9898
- hs-backend-booster
9999
- text
100100
ghc-options:
101-
- -rtsopts
101+
- -rtsopts
102102
pretty:
103103
source-dirs: pretty
104104
main: Pretty.hs
@@ -111,7 +111,7 @@ executables:
111111
- text
112112
- transformers
113113
ghc-options:
114-
- -rtsopts
114+
- -rtsopts
115115
eventlog-parser:
116116
source-dirs: eventlog-parser
117117
main: EventlogParser.hs
@@ -132,7 +132,7 @@ executables:
132132
- unix
133133
- unordered-containers
134134
ghc-options:
135-
- -rtsopts
135+
- -rtsopts
136136
kore-json-differ:
137137
source-dirs: kore-json-differ
138138
main: Main.hs
@@ -141,6 +141,8 @@ executables:
141141
- bytestring
142142
- containers
143143
- hs-backend-booster
144+
ghc-options:
145+
- -rtsopts
144146
tarball-compare:
145147
source-dirs: tarball-compare
146148
main: Main
@@ -189,3 +191,25 @@ executables:
189191
- -rtsopts
190192
- -threaded
191193
- -with-rtsopts=-N
194+
kore-match-disjunction:
195+
source-dirs: kore-match-disjunction
196+
main: Main.hs
197+
dependencies:
198+
- base
199+
- clock
200+
- kore
201+
- optparse-applicative
202+
- transformers
203+
ghc-options:
204+
- -rtsopts
205+
kore-parser:
206+
source-dirs: kore-parser
207+
main: Main.hs
208+
dependencies:
209+
- base
210+
- bytestring
211+
- containers
212+
- exceptions
213+
- kore
214+
ghc-options:
215+
- -rtsopts

flake.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@
7373
'';
7474
postInstall = ''
7575
${drv.postInstall or ""}
76-
rm $out/bin/kore-check-functions
77-
rm $out/bin/kore-format
7876
'';
7977
})).override {
8078
# bit pathological, but ghc-compact is already included with the ghc compiler
@@ -237,10 +235,12 @@
237235
haskell.lib.justStaticExecutables haskell-backend.pkgSet.kore;
238236
hs-backend-booster = with pkgs;
239237
haskell.lib.justStaticExecutables haskell-backend.pkgSet.hs-backend-booster;
238+
hs-backend-booster-dev-tools = with pkgs;
239+
haskell.lib.justStaticExecutables haskell-backend.pkgSet.hs-backend-booster-dev-tools;
240240
in {
241241
kore-exec = withZ3 pkgs kore "kore-exec";
242-
kore-match-disjunction = withZ3 pkgs kore "kore-match-disjunction";
243-
kore-parser = withZ3 pkgs kore "kore-parser";
242+
kore-match-disjunction = withZ3 pkgs hs-backend-booster-dev-tools "kore-match-disjunction";
243+
kore-parser = withZ3 pkgs hs-backend-booster-dev-tools "kore-parser";
244244
kore-repl = withZ3 pkgs kore "kore-repl";
245245
kore-rpc = withZ3 pkgs kore "kore-rpc";
246246
kore-rpc-booster = withZ3 pkgs hs-backend-booster "kore-rpc-booster";

include.mk

+2-24
Original file line numberDiff line numberDiff line change
@@ -59,35 +59,13 @@ KORE_REPL_OPTS = --no-bug-report
5959
export KORE_REPL
6060
export KORE_REPL_OPTS
6161

62-
KORE_CHECK_FUNCTIONS = $(BUILD_DIR)/kore/bin/kore-check-functions
63-
KORE_CHECK_FUNCTIONS_OPTS = --no-bug-report
64-
export KORE_CHECK_FUNCTIONS
65-
export KORE_CHECK_FUNCTIONS_OPTS
66-
67-
KORE_FORMAT = $(BUILD_DIR)/kore/bin/kore-format
68-
KORE_FORMAT_OPTS = --no-bug-report
69-
export KORE_FORMAT
70-
export KORE_FORMAT_OPTS
71-
72-
KORE_MATCH_DISJUNCTION = $(BUILD_DIR)/kore/bin/kore-match-disjunction
73-
KORE_MATCH_DISJUNCTION_OPTS = --no-bug-report
74-
export KORE_MATCH_DISJUNCTION
75-
export KORE_MATCH_DISJUNCTION_OPTS
62+
$(BUILD_DIR)/kore/bin/kore-parser:
63+
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins hs-backend-booster-dev-tools:exe:kore-parser
7664

7765
$(BUILD_DIR)/kore/bin/kore-exec:
7866
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-exec
7967

8068
$(BUILD_DIR)/kore/bin/kore-repl:
8169
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-repl
8270

83-
$(BUILD_DIR)/kore/bin/kore-parser:
84-
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-parser
85-
86-
$(BUILD_DIR)/kore/bin/kore-check-functions:
87-
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-check-functions
88-
89-
$(BUILD_DIR)/kore/bin/kore-format:
90-
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-format
9171

92-
$(BUILD_DIR)/kore/bin/kore-match-disjunction:
93-
$(STACK) $(STACK_BUILD) $(STACK_NO_PROFILE) --copy-bins kore:exe:kore-match-disjunction

kore/Makefile

-15
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,6 @@ ghcid:
4646
ghcid-repl:
4747
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-repl --work-dir .stack-work-ghci"
4848

49-
ghcid-match:
50-
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-match-disjunction --work-dir .stack-work-ghci"
51-
52-
ghcid-check-func:
53-
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-check-functions --work-dir .stack-work-ghci"
54-
55-
ghcid-parser:
56-
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-parser --work-dir .stack-work-ghci"
57-
58-
ghcid-format:
59-
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-format --work-dir .stack-work-ghci"
60-
61-
ghcid-simplify:
62-
$(stack) exec -- ghcid -c "stack ghci $(package) --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is $(package):kore-simplify --work-dir .stack-work-ghci"
63-
6449
dev-deps:
6550
stack install ghcid
6651

kore/README.md

-37
This file was deleted.

kore/app/check-functions/Main.hs

-153
This file was deleted.

0 commit comments

Comments
 (0)