-
Notifications
You must be signed in to change notification settings - Fork 6
/
errata.cabal
97 lines (91 loc) · 2.33 KB
/
errata.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
cabal-version: 2.4
name: errata
version: 0.4.0.2
synopsis: Source code error pretty printing
description:
An extremely customizable error pretty printer that can handle many kinds of error formatting.
It can handle errors that are connected, disconnected, and those spanning multiple lines.
.
You can get started by importing the "Errata" module.
homepage: https://github.com/1Computer1/errata
bug-reports: https://github.com/1Computer1/errata/issues
license: MIT
license-file: LICENSE
author: comp
maintainer: [email protected]
copyright: (c) 2020- comp
category: Pretty Printer
build-type: Simple
extra-doc-files:
README.md
CHANGELOG.md
tested-with:
GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.5
, GHC == 9.6.2
, GHC == 9.8.1
source-repository head
type: git
location: https://github.com/1Computer1/errata.git
flag usewcwidth
description: Enable the use of wcwidth for character widths. If disabled, uses an incomplete premade version.
default: False
common common-options
build-depends:
base >= 4.12 && < 4.20
, containers >= 0.6 && < 0.7
, text >= 1.2.3 && < 2.2
ghc-options:
-Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wredundant-constraints
-Wpartial-fields
-Wno-unused-do-bind
default-language: Haskell2010
library
import: common-options
hs-source-dirs: src
exposed-modules:
Errata
Errata.Internal.Render
Errata.Source
Errata.Styles
Errata.Types
if flag(usewcwidth)
cpp-options: -Dusewcwidth
test-suite errata-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules:
ErrataSpec
, Errata.StylesSpec
, Errata.TypesSpec
build-depends:
errata
, hspec >= 2.7 && < 3
, hspec-golden >= 0.2 && < 0.3
build-tool-depends:
hspec-discover:hspec-discover >= 2.7 && < 3
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N
executable errata-example
import: common-options
hs-source-dirs: example
main-is: Main.hs
build-depends:
errata
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N