Skip to content

Commit 4f3785a

Browse files
committed
WIP
1 parent ea189a2 commit 4f3785a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hashable.cabal

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ library
8989
, deepseq >=1.4.8.1 && <1.6
9090
, text >=2.0.2 && <2.2
9191

92-
if impl(ghc <9.6)
92+
if impl(ghc <9.8)
9393
build-depends: ghc-prim
9494

9595
-- depend on os-string on newer GHCs only.
@@ -156,9 +156,7 @@ test-suite hashable-tests
156156
, filepath
157157
, ghc-prim
158158
, hashable
159-
, HUnit
160159
, QuickCheck >=2.15
161-
, random >=1.3 && <1.4
162160
, tasty ^>=1.5
163161
, tasty-hunit ^>=0.10.1
164162
, tasty-quickcheck ^>=0.10.3 || ^>=0.11
@@ -168,7 +166,6 @@ test-suite hashable-tests
168166
build-depends: os-string
169167

170168
if !os(windows)
171-
build-depends: unix
172169
cpp-options: -DHAVE_MMAP
173170
other-modules: Regress.Mmap
174171
other-extensions: CApiFFI

src/Data/Hashable/Class.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ import Data.Hashable.XXH3
170170

171171
#include "MachDeps.h"
172172

173+
-- sometimes we need dependency of filepath, sometimes we dont
174+
import System.FilePath ()
175+
173176
infixl 0 `hashWithSalt`
174177

175178
------------------------------------------------------------------------

0 commit comments

Comments
 (0)