-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathban-instance.cabal
61 lines (55 loc) · 1.79 KB
/
ban-instance.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: ban-instance
version: 0.1.0.1
synopsis: For when a type should never be an instance of a class
description:
<<https://raw.githubusercontent.com/qfpl/assets/master/data61-transparent-bg.png>>
.
Banning an instance allows the programmer to actively declare that
an instance should never be defined, and provide a reason why:
.
@
data Foo = -- ...
-- Declare that Foo should never have a ToJSON instance
$(banInstance [t|ToJSON Foo|] "why ToJSON Foo should never be defined")
@
category: Haskell
homepage: https://github.com/qfpl/ban-instance#readme
bug-reports: https://github.com/qfpl/ban-instance/issues
author: Jack Kelly, Alex Mason
maintainer: [email protected]
copyright: (c) 2017, Commonwealth Scientific and Industrial Research Organisation
license: BSD3
license-file: LICENSE
build-type: Simple
cabal-version: >= 1.10
tested-with: GHC == 8.0.2
|| == 8.2.2
|| == 8.4.4
|| == 8.6.5
|| == 8.8.1
|| == 8.10.7
|| == 9.0.1
|| == 9.2.7
|| == 9.4.5
|| == 9.6.5
|| == 9.8.2
extra-source-files: ChangeLog.md
README.md
source-repository head
type: git
location: https://github.com/qfpl/ban-instance
library
hs-source-dirs: src
ghc-options: -Wall
build-depends: base >= 4.7 && < 4.20
, template-haskell >= 2.11 && < 2.22
exposed-modules: Language.Haskell.Instance.Ban
default-language: Haskell2010
test-suite ban-instance-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base
, ban-instance
default-language: Haskell2010