Skip to content

Commit dc87de2

Browse files
committed
Upgrade to LTS 24.34 (GHC 9.10.3), fix all warnings
- Upgrade stack resolver from lts-22.11 (GHC 9.6.4) to lts-24.34 (GHC 9.10.3) - Fix all compilation warnings across entire monorepo - Replace deprecated * with Type from Data.Kind - Add TypeOperators extension where ~ is used - Remove redundant imports (foldl' now in Prelude, Data.Monoid, Debug.Trace) - Replace partial head with safe pattern matching - Fix deprecated ghc-options (-auto-all, -caf-all, -rtsopts/-threaded for libs) - Move test functions from library code to test files - Fix incomplete pattern matches - Add missing other-modules in executable section - Widen dependency bounds for GHC 9.10 compatibility
1 parent a7ba4e1 commit dc87de2

19 files changed

Lines changed: 172 additions & 130 deletions

File tree

VirMat.cabal

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,23 @@ flag generator
1919
executable virmatgen
2020
hs-source-dirs: src
2121
main-is: Main.hs
22-
ghc-options: -Wall -O3 -threaded -rtsopts -auto-all -caf-all
22+
ghc-options: -Wall -O3 -threaded -rtsopts -fprof-auto -fprof-cafs
23+
other-modules:
24+
VirMat.Core.FlexMicro
25+
VirMat.Core.Packer
26+
VirMat.Core.Sampling
27+
VirMat.Core.VoronoiMicro
28+
VirMat.Distributions.GrainSize.GrainDistributionGenerator
29+
VirMat.Distributions.GrainSize.GrainQuery
30+
VirMat.Distributions.Texture.ODFSampling
31+
VirMat.IO.Export.ANG.RasterEngine
32+
VirMat.IO.Import.CommandLine
33+
VirMat.IO.Import.Types
34+
VirMat.PhaseTrans
35+
VirMat.Run2D
36+
VirMat.Run3D
37+
VirMat.Types
38+
2339
build-depends:
2440
base >=4 && <5
2541
, containers >=0.5

packages/mcl

src/VirMat/Core/FlexMicro.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module VirMat.Core.FlexMicro (
2525
import qualified Data.HashMap.Strict as HM
2626
import qualified Data.HashSet as HS
2727
import qualified Data.IntSet as IS
28+
import Data.Kind (Type)
2829
import qualified Data.List as L
2930
import Data.Maybe
3031
import Data.Vector (Vector)
@@ -44,7 +45,7 @@ class FlexMicroBuilder v where
4445
the values are store separately in order to allow fast update of values. The topology is
4546
represented by @MicroGraph@.
4647
-}
47-
data FlexMicro v a :: *
48+
data FlexMicro v a :: Type
4849

4950
{- | This function converts a Voronoi microstructure (convex polygonal geomerty)
5051
to flexible microstructure where arbitrary shape of grains are allowed.

0 commit comments

Comments
 (0)