finitary-optics.cabal 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. cabal-version: 2.2
  2. name: finitary-optics
  3. version: 1.0.0.0
  4. synopsis: Prisms and Isos between finitary types.
  5. description:
  6. Provides convenience optics for working with finitary types.
  7. Specifically gives an Iso for inter-converting between types
  8. of the same cardinality, and a Prism for inter-converting
  9. between types of different cardinalities.
  10. homepage: https://notabug.org/koz.ross/finitary-optics
  11. license: GPL-3.0-or-later
  12. license-file: LICENSE.md
  13. author: Koz Ross
  14. maintainer: koz.ross@retro-freedom.nz
  15. copyright: (C) Koz Ross 2019
  16. category: Data
  17. tested-with: GHC ==8.6.5 || ==8.8.3 || ==8.10.1
  18. build-type: Simple
  19. extra-source-files:
  20. CHANGELOG.md
  21. README.md
  22. common common-lang
  23. ghc-options:
  24. -Wall -Wcompat -Wincomplete-record-updates
  25. -Wincomplete-uni-patterns -Wredundant-constraints
  26. default-language: Haskell2010
  27. library
  28. import: common-lang
  29. exposed-modules: Data.Finitary.Optics
  30. build-depends:
  31. , base >=4.12 && <5
  32. , finitary ^>=2.0.0.0
  33. , finite-typelits ^>=0.1.4.2
  34. , optics-core ^>=0.3
  35. hs-source-dirs: src
  36. test-suite tests
  37. import: common-lang
  38. type: exitcode-stdio-1.0
  39. main-is: Main.hs
  40. build-depends:
  41. , base
  42. , finitary-optics
  43. , hedgehog ^>=1.0.2
  44. , hspec ^>=2.7.1
  45. , hspec-hedgehog ^>=0.0.1.2
  46. , optics-core
  47. ghc-options: -threaded -with-rtsopts=-N
  48. hs-source-dirs: test