Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
Description
Some higher level structures are not working because they're not Hashable. The following code fix that - it should probably live in Thrift main module:
import Data.Hashable (Hashable) import qualified Data.HashMap.Strict as Map import qualified Data.HashSet as Set import qualified Data.Vector as Vector instance Hashable a => Hashable (Vector.Vector a) where hashWithSalt s v = hashWithSalt s $ Vector.toList v instance (Hashable a, Hashable b) => Hashable (Map.HashMap a b) where hashWithSalt s v = hashWithSalt s $ Map.toList v instance Hashable a => Hashable (Set.HashSet a) where hashWithSalt s v = hashWithSalt s $ Set.toList v
Attachments
Issue Links
- is related to
-
THRIFT-1921 Make Haskell work with new GHC
- Closed
- relates to
-
THRIFT-1921 Make Haskell work with new GHC
- Closed