Skip to content

Commit deb9d00

Browse files
MirceaSttuegel
andauthored
Move module Kore.VersionInfo into the library
* moved Kore.VersionInfo to the library * Materialize Nix expressions * added doc header to VersionInfo Co-authored-by: MirceaS <[email protected]> Co-authored-by: Thomas Tuegel <[email protected]>
1 parent 7ea55fa commit deb9d00

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

kore/app/share/GlobalMain.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ import Kore.Syntax.Definition
132132
, getModuleNameForError
133133
)
134134
import qualified Kore.Verified as Verified
135+
import Kore.VersionInfo
135136

136137
import qualified Paths_kore as MetaData
137138
( version
138139
)
139-
import VersionInfo
140140

141141
type Main = LoggerT IO
142142

kore/kore.cabal

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cabal-version: 2.2
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 3d55d4e48de30558077ae922d1e28eb952053eba723c498c6844dbb35e799899
7+
-- hash: 03c98e7a7113ac321409caf3539c3987574f8cb7fa4049e7fb285d8c462de491
88

99
name: kore
1010
version: 0.40.0.0
@@ -384,6 +384,7 @@ library
384384
Kore.Variables.Fresh
385385
Kore.Variables.Target
386386
Kore.Verified
387+
Kore.VersionInfo
387388
Log
388389
Log.Entry
389390
Logic
@@ -477,7 +478,6 @@ executable kore-exec
477478
main-is: Main.hs
478479
other-modules:
479480
GlobalMain
480-
VersionInfo
481481
Paths_kore
482482
hs-source-dirs:
483483
app/exec
@@ -558,7 +558,6 @@ executable kore-format
558558
main-is: Main.hs
559559
other-modules:
560560
GlobalMain
561-
VersionInfo
562561
Paths_kore
563562
hs-source-dirs:
564563
app/format
@@ -639,7 +638,6 @@ executable kore-parser
639638
main-is: Main.hs
640639
other-modules:
641640
GlobalMain
642-
VersionInfo
643641
Paths_kore
644642
hs-source-dirs:
645643
app/parser
@@ -794,7 +792,6 @@ executable kore-repl
794792
main-is: Main.hs
795793
other-modules:
796794
GlobalMain
797-
VersionInfo
798795
Paths_kore
799796
hs-source-dirs:
800797
app/repl

kore/app/share/VersionInfo.hs renamed to kore/src/Kore/VersionInfo.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
{- |
2+
Copyright : (c) Runtime Verification, 2021
3+
License : NCSA
4+
5+
-}
6+
17
{-# LANGUAGE DeriveLift #-}
28
{-# LANGUAGE NoDuplicateRecordFields #-}
39
{-# LANGUAGE Strict #-}
410
{-# LANGUAGE TemplateHaskell #-}
511

6-
module VersionInfo
12+
module Kore.VersionInfo
713
( VersionInfo (..)
814
, versionInfo
915
) where

nix/kore.nix.d/kore.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@
443443
"Kore/Variables/Fresh"
444444
"Kore/Variables/Target"
445445
"Kore/Verified"
446+
"Kore/VersionInfo"
446447
"Log"
447448
"Log/Entry"
448449
"Logic"
@@ -531,7 +532,7 @@
531532
(hsPkgs.buildPackages.tasty-discover or (pkgs.buildPackages.tasty-discover or (errorHandler.buildToolDepError "tasty-discover")))
532533
];
533534
buildable = true;
534-
modules = [ "GlobalMain" "VersionInfo" "Paths_kore" ];
535+
modules = [ "GlobalMain" "Paths_kore" ];
535536
hsSourceDirs = [ "app/exec" "app/share" ];
536537
mainPath = ([
537538
"Main.hs"
@@ -603,7 +604,7 @@
603604
(hsPkgs.buildPackages.tasty-discover or (pkgs.buildPackages.tasty-discover or (errorHandler.buildToolDepError "tasty-discover")))
604605
];
605606
buildable = true;
606-
modules = [ "GlobalMain" "VersionInfo" "Paths_kore" ];
607+
modules = [ "GlobalMain" "Paths_kore" ];
607608
hsSourceDirs = [ "app/format" "app/share" ];
608609
mainPath = ([
609610
"Main.hs"
@@ -675,7 +676,7 @@
675676
(hsPkgs.buildPackages.tasty-discover or (pkgs.buildPackages.tasty-discover or (errorHandler.buildToolDepError "tasty-discover")))
676677
];
677678
buildable = true;
678-
modules = [ "GlobalMain" "VersionInfo" "Paths_kore" ];
679+
modules = [ "GlobalMain" "Paths_kore" ];
679680
hsSourceDirs = [ "app/parser" "app/share" ];
680681
mainPath = ([
681682
"Main.hs"
@@ -817,7 +818,7 @@
817818
(hsPkgs.buildPackages.tasty-discover or (pkgs.buildPackages.tasty-discover or (errorHandler.buildToolDepError "tasty-discover")))
818819
];
819820
buildable = true;
820-
modules = [ "GlobalMain" "VersionInfo" "Paths_kore" ];
821+
modules = [ "GlobalMain" "Paths_kore" ];
821822
hsSourceDirs = [ "app/repl" "app/share" ];
822823
mainPath = ([
823824
"Main.hs"

0 commit comments

Comments
 (0)