Skip to content

Commit

Permalink
Merge pull request unisonweb#3094 from unisonweb/less-rebuilds
Browse files Browse the repository at this point in the history
Add package.yaml workaround to stack rebuild issue
  • Loading branch information
mitchellwrosen authored Jun 4, 2022
2 parents 3234b5f + 8495d22 commit 3aa6bfd
Show file tree
Hide file tree
Showing 29 changed files with 80 additions and 47 deletions.
3 changes: 3 additions & 0 deletions codebase2/codebase-sqlite/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: unison-codebase-sqlite
github: unisonweb/unison

library:
when:
- condition: false
other-modules: Paths_unison_codebase_sqlite
source-dirs: .

extra-source-files:
Expand Down
2 changes: 0 additions & 2 deletions codebase2/codebase-sqlite/unison-codebase-sqlite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ library
U.Codebase.Sqlite.Symbol
U.Codebase.Sqlite.Sync22
U.Codebase.Sqlite.Term.Format
other-modules:
Paths_unison_codebase_sqlite
hs-source-dirs:
./
default-extensions:
Expand Down
3 changes: 3 additions & 0 deletions codebase2/codebase-sync/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ github: unisonweb/unison

library:
source-dirs: .
when:
- condition: false
other-modules: Paths_unison_codebase_sync

dependencies:
- base
4 changes: 1 addition & 3 deletions codebase2/codebase-sync/unison-codebase-sync.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: a62b0e8dbabe51c01ebc0871290e2427a734c0fbf9e78aee138b2bdad34d2704
-- hash: e3307c66c00f5bf45548b61cb0aa78f2006c2df8b9ad9172c645f944688d6263

name: unison-codebase-sync
version: 0.0.0
Expand All @@ -19,8 +19,6 @@ source-repository head
library
exposed-modules:
U.Codebase.Sync
other-modules:
Paths_unison_codebase_sync
hs-source-dirs:
./
build-depends:
Expand Down
3 changes: 3 additions & 0 deletions codebase2/codebase/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ default-extensions:

library:
source-dirs: .
when:
- condition: false
other-modules: Paths_unison_codebase

dependencies:
- base
Expand Down
2 changes: 0 additions & 2 deletions codebase2/codebase/unison-codebase.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ library
U.Codebase.Type
U.Codebase.TypeEdit
U.Codebase.WatchKind
other-modules:
Paths_unison_codebase
hs-source-dirs:
./
default-extensions:
Expand Down
3 changes: 3 additions & 0 deletions codebase2/core/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ github: unisonweb/unison

library:
source-dirs: .
when:
- condition: false
other-modules: Paths_unison_core

dependencies:
- base
Expand Down
4 changes: 1 addition & 3 deletions codebase2/core/unison-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: f696d0f997ab3afba6494f5932ac232d27e77073a331ab64d3c8b7929d1deb3a
-- hash: 7b810bbd4d380ccd76c363eac447c7233c7b0e9d968960547c00d20ac3edeb08

name: unison-core
version: 0.0.0
Expand All @@ -20,8 +20,6 @@ library
exposed-modules:
U.Core.ABT
U.Core.ABT.Var
other-modules:
Paths_unison_core
hs-source-dirs:
./
build-depends:
Expand Down
3 changes: 3 additions & 0 deletions codebase2/util-serialization/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: unison-util-serialization

library:
source-dirs: .
when:
- condition: false
other-modules: Paths_unison_util_serialization

dependencies:
- base
Expand Down
4 changes: 1 addition & 3 deletions codebase2/util-serialization/unison-util-serialization.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 0dd31d457a6c3bc41017d163374947c1c31752279ce7ce77bc5772150101afe1
-- hash: 065e98437c72cce9c4cc6102d3eb0b3c8be444a95c3c71ab65a9d17f29e95eae

name: unison-util-serialization
version: 0.0.0
Expand All @@ -13,8 +13,6 @@ build-type: Simple
library
exposed-modules:
U.Util.Serialization
other-modules:
Paths_unison_util_serialization
hs-source-dirs:
./
build-depends:
Expand Down
3 changes: 3 additions & 0 deletions codebase2/util-term/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ github: unisonweb/unison

library:
source-dirs: .
when:
- condition: false
other-modules: Paths_unison_util_term

dependencies:
- base
Expand Down
4 changes: 1 addition & 3 deletions codebase2/util-term/unison-util-term.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 655ca1a695b9a272d6b440b74fe2b6717f710a543d7ddb7639366d4233961bf8
-- hash: 6b08707c87592d47677b3f2db15c17c94a23c13544f339227e43ac19f7ee7947

name: unison-util-term
version: 0.0.0
Expand All @@ -20,8 +20,6 @@ library
exposed-modules:
U.Util.Term
U.Util.Type
other-modules:
Paths_unison_util_term
hs-source-dirs:
./
build-depends:
Expand Down
6 changes: 6 additions & 0 deletions codebase2/util/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ github: unisonweb/unison

library:
source-dirs: src
when:
- condition: false
other-modules: Paths_unison_util

benchmarks:
bench:
when:
- condition: false
other-modules: Paths_unison_util
dependencies:
- criterion
- sandi
Expand Down
4 changes: 0 additions & 4 deletions codebase2/util/unison-util.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ library
U.Util.String
U.Util.Text
U.Util.Timing
other-modules:
Paths_unison_util
hs-source-dirs:
src
default-extensions:
Expand Down Expand Up @@ -66,8 +64,6 @@ library
benchmark bench
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_unison_util
hs-source-dirs:
bench
default-extensions:
Expand Down
3 changes: 3 additions & 0 deletions lib/unison-prelude/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

library:
source-dirs: src
when:
- condition: false
other-modules: Paths_unison_prelude

dependencies:
- base
Expand Down
2 changes: 0 additions & 2 deletions lib/unison-prelude/unison-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ library
Unison.Prelude
Unison.Util.Map
Unison.Util.Set
other-modules:
Paths_unison_prelude
hs-source-dirs:
src
default-extensions:
Expand Down
10 changes: 10 additions & 0 deletions lib/unison-pretty-printer/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ when:
ghc-options: -funbox-strict-fields -O2

library:
when:
- condition: false
other-modules: Paths_unison_pretty_printer

source-dirs: src
dependencies:
- base
Expand All @@ -53,6 +57,9 @@ library:

executables:
prettyprintdemo:
when:
- condition: false
other-modules: Paths_unison_pretty_printer
source-dirs: prettyprintdemo
main: Main.hs
dependencies:
Expand All @@ -64,6 +71,9 @@ executables:

tests:
pretty-printer-tests:
when:
- condition: false
other-modules: Paths_unison_pretty_printer
source-dirs: tests
main: Suite.hs
ghc-options: -W -threaded -rtsopts "-with-rtsopts=-N -T" -v0
Expand Down
5 changes: 0 additions & 5 deletions lib/unison-pretty-printer/unison-pretty-printer.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ library
Unison.Util.Pretty
Unison.Util.Range
Unison.Util.SyntaxText
other-modules:
Paths_unison_pretty_printer
hs-source-dirs:
src
default-extensions:
Expand Down Expand Up @@ -76,8 +74,6 @@ library

executable prettyprintdemo
main-is: Main.hs
other-modules:
Paths_unison_pretty_printer
hs-source-dirs:
prettyprintdemo
default-extensions:
Expand Down Expand Up @@ -118,7 +114,6 @@ test-suite pretty-printer-tests
Unison.Test.ColorText
Unison.Test.Range
Unison.Test.Util.Pretty
Paths_unison_pretty_printer
hs-source-dirs:
tests
default-extensions:
Expand Down
4 changes: 4 additions & 0 deletions lib/unison-sqlite/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ github: unisonweb/unison
copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

library:
when:
- condition: false
other-modules: Paths_unison_sqlite

source-dirs: src
other-modules:
- Unison.Sqlite.DataVersion
Expand Down
9 changes: 9 additions & 0 deletions lib/unison-util-relation/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

library:
source-dirs: src
when:
- condition: false
other-modules: Paths_unison_util_relation

tests:
util-relation-tests:
when:
- condition: false
other-modules: Paths_unison_util_relation
dependencies:
- code-page
- easytest
Expand All @@ -17,6 +23,9 @@ tests:

benchmarks:
relation:
when:
- condition: false
other-modules: Paths_unison_util_relation
source-dirs: benchmarks/relation
main: Main.hs
dependencies:
Expand Down
6 changes: 0 additions & 6 deletions lib/unison-util-relation/unison-util-relation.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ library
Unison.Util.Relation
Unison.Util.Relation3
Unison.Util.Relation4
other-modules:
Paths_unison_util_relation
hs-source-dirs:
src
default-extensions:
Expand Down Expand Up @@ -51,8 +49,6 @@ library
test-suite util-relation-tests
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_unison_util_relation
hs-source-dirs:
test
default-extensions:
Expand Down Expand Up @@ -86,8 +82,6 @@ test-suite util-relation-tests
benchmark relation
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_unison_util_relation
hs-source-dirs:
benchmarks/relation
default-extensions:
Expand Down
6 changes: 6 additions & 0 deletions parser-typechecker/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ library:
- open-browser
- uri-encode
- generic-lens
when:
- condition: false
other-modules: Paths_unison_parser_typechecker

tests:
parser-typechecker-tests:
Expand Down Expand Up @@ -163,6 +166,9 @@ tests:
- unison-util
- unison-util-relation
- unison-pretty-printer
when:
- condition: false
other-modules: Paths_unison_parser_typechecker

default-extensions:
- ApplicativeDo
Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/unison-parser-typechecker.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ library
Unison.Util.Text
Unison.Util.TQueue
Unison.Util.TransitiveClosure
other-modules:
Paths_unison_parser_typechecker
hs-source-dirs:
src
default-extensions:
Expand Down Expand Up @@ -339,7 +337,6 @@ test-suite parser-typechecker-tests
Unison.Test.Util.Relation
Unison.Test.Util.Text
Unison.Test.Var
Paths_unison_parser_typechecker
hs-source-dirs:
tests
default-extensions:
Expand Down
Loading

0 comments on commit 3aa6bfd

Please sign in to comment.