cabal-version: 3.0 name: stock-profunctors version: 0.1.0.0 x-revision: 7 synopsis: Derive Profunctor via the stock plugin description: The @@ plugin provides a datatype for deriving and synthesising instances at compile time. __stock-profunctors__ extends it with support for @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-profunctor__ provides an instance for @DeriveStock2 Profunctor@, that signals to the plugin how to derive @Profunctor@. @@ companion packages include: * @@: @@, @@, @@ * @@: @@, @@, @@ * @@: @@, @@, @@; @@, @@, @@ * @@: @@, @@, @@; @@ * __stock-profunctors__: @@ license: BSD-3-Clause license-file: LICENSE author: Baldur Blöndal maintainer: baldur.blondal@iohk.io category: Type System build-type: Simple tested-with: GHC == 9.8.1, GHC == 9.10.3, GHC == 9.12.4, GHC == 9.14.1 library exposed-modules: Stock.Profunctor build-depends: base >=4.18 && <5, ghc >=9.6 && <9.16, stock >=0.1 && <0.2, profunctors >=5.6 && <6 hs-source-dirs: . default-language: GHC2021 ghc-options: -Wall test-suite test type: exitcode-stdio-1.0 main-is: Test.hs build-depends: base, stock, stock-profunctors, profunctors ghc-options: -fplugin=Stock hs-source-dirs: test default-language: GHC2021 source-repository head type: git location: https://github.com/Icelandjack/stock.git subdir: profunctors