Skip to content

Commit

Permalink
🐛 Fix build with older Hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
lsrcz committed Sep 7, 2024
1 parent fabf27d commit 6fe2d3d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Grisette/Internal/SymPrim/Prim/Internal/Caches.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ data CacheState t where
CacheState t

-- | A class for interning terms.
class -- ( Hashable (Description t),
-- Eq (Description t),
-- Show t
-- ) =>
Interned t where
class Interned t where
data Description t
type Uninterned t
describe :: Uninterned t -> Description t
Expand Down Expand Up @@ -149,7 +145,7 @@ typeMemoizedCache tid = do

reclaimTerm ::
forall t.
(Interned t, Hashable (Description t), Typeable t) =>
(Interned t, Hashable (Description t), Typeable t, Eq (Description t)) =>
WeakThreadId ->
Int ->
Description t ->
Expand Down Expand Up @@ -179,7 +175,7 @@ reclaimTerm id grp dt = do
-- | Internalize a term.
intern ::
forall t.
(Interned t, Typeable t, Hashable (Description t)) =>
(Interned t, Typeable t, Hashable (Description t), Eq (Description t)) =>
Uninterned t ->
IO t
intern !bt = do
Expand Down

0 comments on commit 6fe2d3d

Please sign in to comment.