-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathban-instance.cabal
More file actions
58 lines (52 loc) · 1.71 KB
/
ban-instance.cabal
File metadata and controls
58 lines (52 loc) · 1.71 KB
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
cabal-version: 1.18
name: ban-instance
version: 0.1.1.0
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: jack.kelly@data61.csiro.au
copyright: (c) 2017, Commonwealth Scientific and Industrial Research Organisation
license: BSD3
license-file: LICENSE
build-type: Simple
tested-with: GHC == 8.10.7
|| == 9.0.1
|| == 9.2.7
|| == 9.4.5
|| == 9.6.5
|| == 9.8.2
|| == 9.10.2
|| == 9.12.2
extra-doc-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.22
, template-haskell >= 2.16 && < 2.24
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