haskell-te: b51a77ce351c1299e7916e5996dd698017024f82
1: From: Chris Warburton
2: Date: Thu, 02 Nov 2017 16:35:54 +0000
3: Subject: Re: Ensure hashable are Serializable
4: Message-Id: <ef5280028f66a9e7-a72245eef963ac90-artemis@nixos>
5: References: <ef5280028f66a9e7-0-artemis@nixos>
6: In-Reply-To: <ef5280028f66a9e7-0-artemis@nixos>
7:
8: Turns out we had a bug in setting 'hashable'.
9:
10: We try a hashed version and an unhashed version, and see what works. For
11: each function name, we see if anything with that name worked, and if any
12: of those was a hashed version.
13:
14: We forgot this second check, so non-hashable things were being flagged
15: as hashable, simply because we found some working output (despite it
16: being from the unhashed version).
17:
18: This is now fixed, with regression tests involving dlist: `replicate`
19: produces a `DList a`, which synonymous with a function type and hence is
20: not hashable; `toList` produces a `[a]` which is hashable.
Generated by git2html.