Skip to content

Commit

Permalink
ENH Update to newer LTS
Browse files Browse the repository at this point in the history
This triggered a C error too, which this fixed
  • Loading branch information
luispedro committed Oct 1, 2024
1 parent 883f281 commit 905f694
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions diskhash.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ library
ghc-options: -Wall
build-depends:
base > 4.8 && < 5,
bytestring == 0.10.*
bytestring

Test-Suite diskhashtest
default-language: Haskell2010
Expand All @@ -33,7 +33,7 @@ Test-Suite diskhashtest
include-dirs: src/
build-depends:
base > 4.8 && < 5,
bytestring == 0.10.*,
bytestring,
directory,
diskhash,
tasty,
Expand Down
2 changes: 1 addition & 1 deletion src/diskhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ size_t dht_reserve(HashTable* ht, size_t cap, char** err) {
dht_insert(temp_ht, et.ht_key, et.ht_data, NULL);
}

const char* temp_fname = strdup(temp_ht->fname_);
char* temp_fname = strdup(temp_ht->fname_);
if (!temp_fname) {
if (err) { *err = NULL; }
unlink(temp_ht->fname_);
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-19.19
resolver: lts-22.6

packages:
- .
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
size: 619170
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/19.yaml
sha256: a95a93bcb7132bf5f8ad3356998e223947852f57d4da63e0e145870ea90d9d18
original: lts-19.19
sha256: 1b4c2669e26fa828451830ed4725e4d406acc25a1fa24fcc039465dd13d7a575
size: 714100
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/6.yaml
original: lts-22.6

0 comments on commit 905f694

Please sign in to comment.