packages feed

stock-profunctors-0.1.0.0: stock-profunctors.cabal

cabal-version:       3.0
name:                stock-profunctors
version:             0.1.0.0
synopsis:            Derive Profunctor via the stock plugin
description:
  A companion for the <https://hackage.haskell.org/package/stock stock> plugin: depend on @stock-profunctors@ and you can
  write @data P a b = … deriving Profunctor via Stock2 P@.  It is /not/ a plugin
 , it registers an @instance DeriveStock2 Profunctor@ (on the "Stock.Derive"
  SDK) that the @stock@ plugin discovers and runs, so no extra @-fplugin@ is
  needed.

  @Profunctor@ is the @[Contra, Co]@ case of the plugin's n-ary variance functor
  engine, the same recursion as @Functor@ \/ @Contravariant@ \/ @Bifunctor@.
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