stock-hashable
Derive Hashable via the stock plugin
The <https://hackage.haskell.org/package/stock stock> plugin
provides a newtype
__@<https://hackage-content.haskell.org/package/stock-0.1.0.0/docs/Stock.html#t:Stock Stock>@__
for deriving and synthesising instances at compile time. __stock-hashable__ extends it to support
@<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable.html#t:Hashable Hashable>@,
and higher-kinded variants.
> {-# options_ghc -fplugin Stock #-}
>
> {-# language DerivingVia #-}
>
> import Stock
> import Stock.Hashable
>
> data Pair a b = Pair a b
> deriving (Eq, Hashable) via Stock (Pair a b)
> deriving (Eq1, Hashable1) via Stock1 (Pair a)
> deriving (Eq2, Hashable2) via Stock2 Pair
__stock-hashable__ provides three instances, that signal to the
plugin how to derive @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable.html#t:Hashable Hashable>@, @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable-Lifted.html#t:Hashable1 Hashable1>@ and @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable-Lifted.html#t:Hashable2 Hashable2>@.
> instance DeriveStock Hashable ..
> instance DeriveStock1 Hashable1 ..
> instance DeriveStock2 Hashable2 ..
<https://hackage.haskell.org/package/stock stock> companion packages include:
* __@<https://hackage.haskell.org/package/stock-deepseq stock-deepseq>@__: @<https://hackage-content.haskell.org/package/deepseq-1.5.2.0/docs/Control-DeepSeq.html#t:NFData NFData>@, @<https://hackage-content.haskell.org/package/deepseq-1.5.2.0/docs/Control-DeepSeq.html#t:NFData1 NFData1>@, @<https://hackage-content.haskell.org/package/deepseq-1.5.2.0/docs/Control-DeepSeq.html#t:NFData2 NFData2>@
* __@stock-hashable@__: @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable.html#t:Hashable Hashable>@, @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable-Lifted.html#t:Hashable1 Hashable1>@, @<https://hackage-content.haskell.org/package/hashable-1.5.1.0/docs/Data-Hashable-Lifted.html#t:Hashable2 Hashable2>@
* __@<https://hackage.haskell.org/package/stock-aeson stock-aeson>@__: @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:ToJSON ToJSON>@, @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:ToJSON1 ToJSON1>@, @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:ToJSON2 ToJSON2>@; @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:FromJSON FromJSON>@, @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:FromJSON1 FromJSON1>@, @<https://hackage-content.haskell.org/package/aeson-2.3.0.0/docs/Data-Aeson.html#t:FromJSON2 FromJSON2>@
* __@<https://hackage.haskell.org/package/stock-quickcheck stock-quickcheck>@__: @<https://hackage-content.haskell.org/package/QuickCheck-2.18.0.0/docs/Test-QuickCheck.html#t:Arbitrary Arbitrary>@, @<https://hackage-content.haskell.org/package/QuickCheck-2.18.0.0/docs/Test-QuickCheck.html#t:Arbitrary1 Arbitrary1>@, @<https://hackage-content.haskell.org/package/QuickCheck-2.18.0.0/docs/Test-QuickCheck.html#t:Arbitrary2 Arbitrary2>@; @<https://hackage-content.haskell.org/package/QuickCheck-2.18.0.0/docs/Test-QuickCheck.html#t:CoArbitrary CoArbitrary>@
* __@<https://hackage.haskell.org/package/stock-profunctors stock-profunctors>@__: @<https://hackage-content.haskell.org/package/profunctors-5.6.3/docs/Data-Profunctor.html#t:Profunctor Profunctor>@
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.0 | 2026-06-23 15:43 UTC | BaldurBlondal | 5 revisions | +487/−0 lines, 5 filesdep +basedep +ghcdep +hashable |
Dependencies of stock-hashable-0.1.0.0
base >=4.18 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
ghc >=9.6 && <9.16 9.14.1 → 9.14.2
| 2026-12-01 12:38 UTC | 9.14.2 | +9989/−5774 lines, 231 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-12-19 11:51 UTC | 9.14.1 | +94968/−73927 lines, 535 filesdep +ghc-internaldep ~basedep ~containersdep ~ghc-bootsetup-changedPVP ok |
| 2026-03-27 12:26 UTC | 9.12.4 | +3128/−1766 lines, 79 filesdep +rtsdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-12-27 10:29 UTC | 9.12.3 | +6833/−5245 lines, 117 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-06-16 15:02 UTC | 9.12.2 | +182/−697 lines, 17 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
showing 5 of 51 versions
hashable >=1.4 && <1.6 1.5.0.0 → 1.5.1.0
| 2026-01-02 17:45 UTC | 1.5.1.0 | +7260/−6790 lines, 5 filesdep −HUnitdep −ghc-bignumdep −randomdep ~basedep ~containersPVP: major bump suggested |
| 2024-07-04 19:38 UTC | 1.5.0.0 | +50/−156 lines, 4 filesdep −base-orphansdep −ghc-bignum-orphansdep −integer-gmpdep ~QuickCheckdep ~basedep ~bytestringPVP ok |
| 2024-06-24 10:44 UTC | 1.4.7.0 | +8/−3 lines, 2 filesPVP ok |
| 2024-06-09 19:43 UTC | 1.4.6.0 | +60/−83 lines, 7 filesdep −test-frameworkdep −test-framework-hunitdep −test-framework-quickcheck2PVP ok |
| 2024-06-08 14:07 UTC | 1.4.5.0 | +7338/−256 lines, 15 filesdep +primitivedep +tastydep +tasty-hunitdep ~basedep ~bytestringdep ~containersPVP ok |
showing 5 of 52 versions
inspection-testing >=0 0.6.2 → 0.6.3
| 2026-01-17 15:12 UTC | 0.6.3 | +3227/−3218 lines, 24 filesdep −mtlsetup-changednew-uploaderPVP ok |
| 2025-06-13 08:40 UTC | 0.6.2 | +159/−125 lines, 5 filesdep ~basedep ~ghcPVP ok |
| 2025-06-11 21:55 UTC | 0.6.1 | +160/−131 lines, 4 filesPVP ok |
| 2025-01-01 19:38 UTC | 0.6 | +41/−4 lines, 4 filesdep ~basePVP ok |
| 2023-12-29 09:33 UTC | 0.5.0.3 | +29/−13 lines, 4 filesdep ~basedep ~ghcPVP ok |
showing 5 of 29 versions
stock >=0.1 && <0.2 0.1.0.1 → 0.1.0.2
| 2026-06-24 09:53 UTC | 0.1.0.2 | +305/−22 lines, 9 filesdep +processdep ~basePVP ok |
| 2026-06-24 02:18 UTC | 0.1.0.1 | +150/−101 lines, 8 filesPVP: major bump suggested |
| 2026-06-23 14:40 UTC | 0.1.0.0 | +8536/−0 lines, 33 filesdep +basedep +ghcdep +inspection-testing |
Reverse dependencies
no known reverse dependencies