Skip to content

Commit

Permalink
split utils into sublibrary (#1675)
Browse files Browse the repository at this point in the history
Towards #1043

This is the first of potentially more granular sub-library splits.
  • Loading branch information
kostmo authored Dec 7, 2023
1 parent b8d37a9 commit 938aa2c
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
66 changes: 55 additions & 11 deletions swarm.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,51 @@ common ghc2021-extensions
-- Not GHC2021, but until we get \cases we use \case a lot
LambdaCase

library

library swarm-util
import: stan-config, common, ghc2021-extensions
exposed-modules: Control.Carrier.Accum.FixedStrict
Data.BoolExpr.Simplify
Swarm.App
Swarm.Util
Swarm.Util.Erasable
Swarm.Util.Lens
Swarm.Util.Parse
Swarm.Util.RingBuffer
Swarm.Util.UnitInterval
Swarm.Util.WindowedCounter
Swarm.Util.Yaml
other-modules: Paths_swarm
autogen-modules: Paths_swarm
build-depends: base >= 4.14 && < 4.19,
aeson >= 2 && < 2.2,
boolexpr >= 0.2 && < 0.3,
clock >= 0.8.2 && < 0.9,
containers >= 0.6.2 && < 0.7,
directory >= 1.3 && < 1.4,
either >= 5.0 && < 5.1,
filepath >= 1.4 && < 1.5,
fused-effects >= 1.1.1.1 && < 1.2,
lens >= 4.19 && < 5.3,
minimorph >= 0.3 && < 0.4,
mtl >= 2.2.2 && < 2.4,
template-haskell >= 2.16 && < 2.21,
text >= 1.2.4 && < 2.1,
vector >= 0.12 && < 0.14,
witch >= 1.1.1.0 && < 1.3,
yaml >= 0.11 && < 0.11.12.0,
transformers >= 0.5 && < 0.7,
servant-docs >= 0.12 && < 0.14,
megaparsec >= 9.6.1 && < 9.7,
hs-source-dirs: src/swarm-util
default-language: Haskell2010
default-extensions:
-- Avoid unexpected unevaluated thunk buildup
-- See discussion in #415
StrictData

library
import: stan-config, common, ghc2021-extensions
exposed-modules: Swarm.App
Swarm.Constant
Swarm.Doc.Keyword
Swarm.Doc.Pedagogy
Expand Down Expand Up @@ -244,17 +284,21 @@ library
Swarm.TUI.Model.Structure
Swarm.TUI.Model.UI
Swarm.TUI.Panel
Swarm.Util
Swarm.Util.Effect
Swarm.Util.Erasable
Swarm.Util.Lens
Swarm.Util.Parse
Swarm.Util.RingBuffer
Swarm.Util.UnitInterval
Swarm.Util.WindowedCounter
Swarm.Util.Yaml
Swarm.Version
Swarm.Web

reexported-modules: Control.Carrier.Accum.FixedStrict
, Data.BoolExpr.Simplify
, Swarm.Util
, Swarm.Util.Erasable
, Swarm.Util.Lens
, Swarm.Util.Parse
, Swarm.Util.RingBuffer
, Swarm.Util.UnitInterval
, Swarm.Util.WindowedCounter
, Swarm.Util.Yaml

other-modules: Paths_swarm
autogen-modules: Paths_swarm

Expand Down Expand Up @@ -290,7 +334,6 @@ library
linear >= 1.21.6 && < 1.23,
lsp >= 1.6 && < 1.7,
megaparsec >= 9.6.1 && < 9.7,
minimorph >= 0.3 && < 0.4,
transformers >= 0.5 && < 0.7,
mtl >= 2.2.2 && < 2.4,
murmur3 >= 1.0.4 && < 1.1,
Expand Down Expand Up @@ -328,6 +371,7 @@ library
build-depends: vty-windows >= 0.1.0.3 && < 0.2
else
build-depends: vty-unix >= 0.1.0.0 && < 0.2
build-depends: swarm-util
hs-source-dirs: src
default-language: Haskell2010
default-extensions:
Expand Down

0 comments on commit 938aa2c

Please sign in to comment.