finitary.cabal 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. cabal-version: 2.2
  2. name: finitary
  3. version: 2.0.0.0
  4. synopsis: A better, more type-safe Enum.
  5. description:
  6. Provides a type class witnessing that a type has
  7. finitely-many inhabitants, as well as its cardinality.
  8. Also provides an auto-deriving framework using GHC
  9. Generics, together with a range of instances for existing
  10. types.
  11. homepage: https://notabug.org/koz.ross/finitary
  12. bug-reports: https://notabug.org/koz.ross/finitary/issues
  13. license: GPL-3.0-or-later
  14. license-file: LICENSE.md
  15. author: Koz Ross
  16. maintainer: koz.ross@retro-freedom.nz
  17. copyright: (C) Koz Ross 2019-2020
  18. category: Data
  19. build-type: Simple
  20. tested-with: GHC ==8.6.5 || ==8.8.3 || ==8.10.1
  21. extra-source-files:
  22. CHANGELOG.md
  23. README.md
  24. LICENSE.md
  25. flag bitvec
  26. description: Include 'bitvec' instances
  27. default: True
  28. manual: False
  29. flag vector
  30. description: Include 'vector' instances
  31. default: True
  32. manual: False
  33. source-repository head
  34. type: git
  35. location: git://notabug.org/koz.ross/finitary.git
  36. library
  37. exposed-modules: Data.Finitary
  38. other-modules: Data.Finitary.TH
  39. build-depends:
  40. , base >=4.12 && <5
  41. , finite-typelits ^>=0.1.4.2
  42. , ghc-typelits-knownnat ^>=0.7.2
  43. , ghc-typelits-natnormalise ^>=0.7.2
  44. , template-haskell >=2.14.0.0 && <3.0.0.0
  45. , typelits-witnesses ^>=0.4.0.0
  46. if flag(bitvec)
  47. cpp-options:
  48. -DBITVEC
  49. build-depends:
  50. , bitvec ^>=1.0.3.0
  51. if flag(vector)
  52. cpp-options:
  53. -DVECTOR
  54. build-depends:
  55. , primitive ^>=0.7.0.1
  56. , vector ^>=0.12.1.2
  57. , vector-sized ^>=1.4.1.0
  58. hs-source-dirs: src
  59. ghc-options:
  60. -Wall -Wcompat -Wincomplete-record-updates
  61. -Wincomplete-uni-patterns -Wredundant-constraints
  62. default-language: Haskell2010
  63. test-suite tests
  64. type: exitcode-stdio-1.0
  65. main-is: Main.hs
  66. other-modules:
  67. Data.Finitary
  68. Data.Finitary.TH
  69. build-depends:
  70. , base
  71. , bitvec
  72. , finite-typelits
  73. , ghc-typelits-knownnat
  74. , ghc-typelits-natnormalise
  75. , hedgehog ^>=1.0.2
  76. , hspec ^>=2.7.1
  77. , hspec-hedgehog ^>=0.0.1.2
  78. , primitive
  79. , template-haskell
  80. , typelits-witnesses
  81. , vector
  82. , vector-sized
  83. hs-source-dirs: test src
  84. ghc-options:
  85. -Wall -Wcompat -Wincomplete-record-updates
  86. -Wincomplete-uni-patterns -Wredundant-constraints -O2 -threaded
  87. -with-rtsopts=-N
  88. default-language: Haskell2010