Skip to content

Commit

Permalink
move Unison.Hash and friends to new unison-hash package
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Dec 15, 2022
1 parent 3e48cab commit bbc17e0
Show file tree
Hide file tree
Showing 34 changed files with 156 additions and 23 deletions.
1 change: 1 addition & 0 deletions codebase2/codebase-sqlite-hashing-v2/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- unison-codebase-sqlite
- unison-core
- unison-core1
- unison-hash
- unison-hashing-v2
- unison-prelude
- unison-sqlite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ library
, unison-codebase-sqlite
, unison-core
, unison-core1
, unison-hash
, unison-hashing-v2
, unison-prelude
, unison-sqlite
Expand Down
3 changes: 2 additions & 1 deletion codebase2/codebase-sqlite/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ dependencies:
- unison-codebase
- unison-codebase-sync
- unison-core
- unison-hash
- unison-hash-orphans-sqlite
- unison-prelude
- unison-sqlite
- unison-util
- unison-util-base32hex
- unison-util-base32hex-orphans-sqlite
- unison-util-serialization
- unison-util-term
- unliftio
Expand Down
3 changes: 2 additions & 1 deletion codebase2/codebase-sqlite/unison-codebase-sqlite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ library
, unison-codebase
, unison-codebase-sync
, unison-core
, unison-hash
, unison-hash-orphans-sqlite
, unison-prelude
, unison-sqlite
, unison-util
, unison-util-base32hex
, unison-util-base32hex-orphans-sqlite
, unison-util-serialization
, unison-util-term
, unliftio
Expand Down
1 change: 1 addition & 0 deletions codebase2/codebase/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies:
- mtl
- text
- unison-core
- unison-hash
- unison-util
- unison-util-base32hex
- unison-prelude
Expand Down
1 change: 1 addition & 0 deletions codebase2/codebase/unison-codebase.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ library
, text
, time
, unison-core
, unison-hash
, unison-prelude
, unison-util
, unison-util-base32hex
Expand Down
1 change: 0 additions & 1 deletion codebase2/core/unison-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ library
exposed-modules:
U.Core.ABT
U.Core.ABT.Var
Unison.ContentAddressable
hs-source-dirs:
./
default-extensions:
Expand Down
15 changes: 9 additions & 6 deletions hie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ cradle:
- path: "codebase2/util-term/./"
component: "unison-util-term:lib"

- path: "lib/unison-hash/src"
component: "unison-hash:lib"

- path: "lib/unison-hash-orphans-aeson/src"
component: "unison-hash-orphans-aeson:lib"

- path: "lib/unison-hash-orphans-sqlite/src"
component: "unison-hash-orphans-sqlite:lib"

- path: "lib/unison-prelude/src"
component: "unison-prelude:lib"

Expand All @@ -45,12 +54,6 @@ cradle:
- path: "lib/unison-util-base32hex/src"
component: "unison-util-base32hex:lib"

- path: "lib/unison-util-base32hex-orphans-aeson/src"
component: "unison-util-base32hex-orphans-aeson:lib"

- path: "lib/unison-util-base32hex-orphans-sqlite/src"
component: "unison-util-base32hex-orphans-sqlite:lib"

- path: "lib/unison-util-bytes/src"
component: "unison-util-bytes:lib"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: unison-util-base32hex-orphans-aeson
name: unison-hash-orphans-aeson
github: unisonweb/unison
copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

library:
when:
- condition: false
other-modules: Paths_unison_util_base32hex_orphans_aeson
other-modules: Paths_unison_hash_orphans_aeson
source-dirs: src

dependencies:
- aeson
- base
- text
- unison-hash
- unison-util-base32hex

ghc-options:
Expand Down
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

name: unison-util-base32hex-orphans-aeson
name: unison-hash-orphans-aeson
version: 0.0.0
homepage: https://github.com/unisonweb/unison#readme
bug-reports: https://github.com/unisonweb/unison/issues
Expand Down Expand Up @@ -49,5 +49,6 @@ library
aeson
, base
, text
, unison-hash
, unison-util-base32hex
default-language: Haskell2010
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: unison-util-base32hex-orphans-sqlite
name: unison-hash-orphans-sqlite
github: unisonweb/unison
copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

library:
when:
- condition: false
other-modules: Paths_unison_util_base32hex_orphans_sqlite
other-modules: Paths_unison_hash_orphans_sqlite
source-dirs: src

dependencies:
- base
- sqlite-simple
- text
- unison-hash
- unison-util-base32hex

ghc-options:
Expand Down
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

name: unison-util-base32hex-orphans-sqlite
name: unison-hash-orphans-sqlite
version: 0.0.0
homepage: https://github.com/unisonweb/unison#readme
bug-reports: https://github.com/unisonweb/unison/issues
Expand Down Expand Up @@ -49,5 +49,6 @@ library
base
, sqlite-simple
, text
, unison-hash
, unison-util-base32hex
default-language: Haskell2010
46 changes: 46 additions & 0 deletions lib/unison-hash/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: unison-hash
github: unisonweb/unison
copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors

ghc-options: -Wall -O0 -fno-warn-name-shadowing -fno-warn-missing-pattern-synonym-signatures

dependencies:
- base
- bytestring
- text
- unison-prelude
- unison-util-base32hex

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

default-extensions:
- ApplicativeDo
- BangPatterns
- BlockArguments
- DeriveAnyClass
- DeriveFunctor
- DeriveGeneric
- DeriveTraversable
- DerivingStrategies
- DerivingVia
- DoAndIfThenElse
- DuplicateRecordFields
- FlexibleContexts
- FlexibleInstances
- GeneralizedNewtypeDeriving
- LambdaCase
- MultiParamTypeClasses
- NamedFieldPuns
- OverloadedStrings
- PatternSynonyms
- RankNTypes
- ScopedTypeVariables
- StandaloneDeriving
- TupleSections
- TypeApplications
- TypeFamilies
- ViewPatterns
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
60 changes: 60 additions & 0 deletions lib/unison-hash/unison-hash.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack

name: unison-hash
version: 0.0.0
homepage: https://github.com/unisonweb/unison#readme
bug-reports: https://github.com/unisonweb/unison/issues
copyright: Copyright (C) 2013-2021 Unison Computing, PBC and contributors
build-type: Simple

source-repository head
type: git
location: https://github.com/unisonweb/unison

library
exposed-modules:
U.Util.Hash
U.Util.Hash32
Unison.ContentAddressable
Unison.Hash
hs-source-dirs:
src
default-extensions:
ApplicativeDo
BangPatterns
BlockArguments
DeriveAnyClass
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingStrategies
DerivingVia
DoAndIfThenElse
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
OverloadedStrings
PatternSynonyms
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -Wall -O0 -fno-warn-name-shadowing -fno-warn-missing-pattern-synonym-signatures
build-depends:
base
, bytestring
, text
, unison-prelude
, unison-util-base32hex
default-language: Haskell2010
2 changes: 0 additions & 2 deletions lib/unison-util-base32hex/unison-util-base32hex.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ source-repository head
library
exposed-modules:
U.Util.Base32Hex
U.Util.Hash
U.Util.Hash32
hs-source-dirs:
src
default-extensions:
Expand Down
1 change: 1 addition & 0 deletions parser-typechecker/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ dependencies:
- unison-codebase-sync
- unison-core
- unison-core1
- unison-hash
- unison-hashing-v2
- unison-prelude
- unison-pretty-printer
Expand Down
2 changes: 2 additions & 0 deletions parser-typechecker/unison-parser-typechecker.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ library
, unison-codebase-sync
, unison-core
, unison-core1
, unison-hash
, unison-hashing-v2
, unison-prelude
, unison-pretty-printer
Expand Down Expand Up @@ -463,6 +464,7 @@ test-suite parser-typechecker-tests
, unison-codebase-sync
, unison-core
, unison-core1
, unison-hash
, unison-hashing-v2
, unison-parser-typechecker
, unison-prelude
Expand Down
5 changes: 3 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ packages:
- codebase2/util
- codebase2/util-serialization
- codebase2/util-term
- lib/unison-hash
- lib/unison-hash-orphans-aeson
- lib/unison-hash-orphans-sqlite
- lib/unison-prelude
- lib/unison-sqlite
- lib/unison-util-base32hex
- lib/unison-util-base32hex-orphans-aeson
- lib/unison-util-base32hex-orphans-sqlite
- lib/unison-util-bytes
- lib/unison-util-relation
- lib/unison-util-rope
Expand Down
2 changes: 1 addition & 1 deletion unison-cli/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dependencies:
- unison-codebase
- unison-codebase-sqlite
- unison-codebase-sqlite-hashing-v2
- unison-sqlite
- unison-core1
- unison-hash
- unison-parser-typechecker
- unison-prelude
- unison-pretty-printer
Expand Down
5 changes: 5 additions & 0 deletions unison-cli/unison-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ library
, unison-codebase-sqlite
, unison-codebase-sqlite-hashing-v2
, unison-core1
, unison-hash
, unison-parser-typechecker
, unison-prelude
, unison-pretty-printer
Expand Down Expand Up @@ -311,6 +312,7 @@ executable cli-integration-tests
, unison-codebase-sqlite
, unison-codebase-sqlite-hashing-v2
, unison-core1
, unison-hash
, unison-parser-typechecker
, unison-prelude
, unison-pretty-printer
Expand Down Expand Up @@ -431,6 +433,7 @@ executable transcripts
, unison-codebase-sqlite
, unison-codebase-sqlite-hashing-v2
, unison-core1
, unison-hash
, unison-parser-typechecker
, unison-prelude
, unison-pretty-printer
Expand Down Expand Up @@ -558,6 +561,7 @@ executable unison
, unison-codebase-sqlite
, unison-codebase-sqlite-hashing-v2
, unison-core1
, unison-hash
, unison-parser-typechecker
, unison-prelude
, unison-pretty-printer
Expand Down Expand Up @@ -688,6 +692,7 @@ test-suite cli-tests
, unison-codebase-sqlite
, unison-codebase-sqlite-hashing-v2
, unison-core1
, unison-hash
, unison-parser-typechecker
, unison-prelude
, unison-pretty-printer
Expand Down
1 change: 1 addition & 0 deletions unison-core/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ library:
- text
- transformers
- unison-core
- unison-hash
- unison-prelude
- unison-util
- unison-util-base32hex
Expand Down
Loading

0 comments on commit bbc17e0

Please sign in to comment.