stock-profunctors
Derive Profunctor 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-profunctors__ extends it to support
@<https://hackage-content.haskell.org/package/profunctors-5.6.3/docs/Data-Profunctor.html#t:Profunctor Profunctor>@.
> {-# options_ghc -fplugin Stock #-}
>
> {-# language DerivingVia #-}
>
> import Data.Kind
> import Stock
> import Stock.Profunctor
>
> type Foo :: Type -> Type -> Type
> newtype Foo i o = Foo ((((o -> i) -> o) -> i)
> -> (((i -> o) -> i) -> o))
> deriving Functor via Stock1 (Foo i)
> deriving Profunctor via Stock2 Foo
__stock-profunctors__ provides an instance for @DeriveStock2
Profunctor@ that signals to the plugin how to derive
@<https://hackage-content.haskell.org/package/profunctors-5.6.3/docs/Data-Profunctor.html#t:Profunctor Profunctor>@.
<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>@
* __@<https://hackage.haskell.org/package/stock-hashable 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>@
* __@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 | 11 revisions | +249/−0 lines, 4 filesdep +basedep +ghcdep +profunctors |
Dependencies of stock-profunctors-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
profunctors >=5.6 && <6 5.6.2 → 5.6.3
| 2025-06-17 11:50 UTC | 5.6.3 | +24/−66 lines, 10 filesdep −semigroupsdep ~basePVP: major bump suggested |
| 2021-02-17 14:50 UTC | 5.6.2 | +31/−2 lines, 3 filesdep ~base-orphansdep ~semigroupsdep ~transformersPVP ok |
| 2020-12-31 12:05 UTC | 5.6.1 | +57/−174 lines, 17 filesdep ~base-orphansdep ~bifunctorsdep ~comonadPVP: major bump suggested |
| 2020-10-01 11:25 UTC | 5.6 | +166/−85 lines, 16 filesdep ~basePVP ok |
| 2020-02-13 19:20 UTC | 5.5.2 outside bounds | +35/−1 lines, 5 filesPVP ok |
showing 5 of 44 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