finitary.cabal 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. cabal-version: 2.2
  2. name: finitary
  3. version: 2.1.2.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/sheaf/finitary
  12. bug-reports: https://notabug.org/sheaf/finitary/issues
  13. license: GPL-3.0-or-later
  14. license-file: LICENSE.md
  15. author: Koz Ross
  16. maintainer: Sam Derbyshire
  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 || == 9.0.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: True
  29. flag vector
  30. description: Include 'vector-sized' instances
  31. default: True
  32. manual: True
  33. source-repository head
  34. type: git
  35. location: git://notabug.org/sheaf/finitary.git
  36. library
  37. exposed-modules: Data.Finitary
  38. other-modules: Data.Finitary.TH
  39. build-depends:
  40. , base
  41. >= 4.12 && < 5
  42. , finite-typelits
  43. ^>= 0.1.4.2
  44. , ghc-typelits-knownnat
  45. ^>= 0.7.2
  46. , ghc-typelits-natnormalise
  47. ^>= 0.7.2
  48. , template-haskell
  49. >= 2.14.0.0 && < 3.0.0.0
  50. if flag(bitvec)
  51. cpp-options:
  52. -DBITVEC
  53. build-depends:
  54. , bitvec
  55. >= 1.0.3.0 && < 1.2
  56. if flag(vector)
  57. cpp-options:
  58. -DVECTOR
  59. build-depends:
  60. , primitive
  61. ^>= 0.7.0.1
  62. , vector
  63. ^>= 0.12.1.2
  64. , vector-sized
  65. >= 1.4.1.0 && < 1.6
  66. , typelits-witnesses
  67. ^>= 0.4.0.1
  68. hs-source-dirs: src
  69. ghc-options:
  70. -Wall -Wcompat -Wincomplete-record-updates
  71. -Wincomplete-uni-patterns -Wredundant-constraints
  72. default-language: Haskell2010
  73. test-suite tests
  74. type: exitcode-stdio-1.0
  75. main-is: Main.hs
  76. build-depends:
  77. , base
  78. , bitvec
  79. , finite-typelits
  80. , finitary
  81. , ghc-typelits-knownnat
  82. , ghc-typelits-natnormalise
  83. , hedgehog
  84. >= 1.0.2 && < 1.3
  85. , hspec
  86. >= 2.7.1 && < 3.0
  87. , hspec-hedgehog
  88. >= 0.0.1.2 && < 0.2
  89. , primitive
  90. , template-haskell
  91. , typelits-witnesses
  92. , vector
  93. , vector-sized
  94. hs-source-dirs: test
  95. ghc-options:
  96. -Wall -Wcompat -Wincomplete-record-updates
  97. -Wincomplete-uni-patterns -Wredundant-constraints -O2 -threaded
  98. -with-rtsopts=-N
  99. default-language: Haskell2010