forked from facebookincubator/retrie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
retrie.cabal
183 lines (176 loc) · 4.18 KB
/
retrie.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
-- Copyright (c) Facebook, Inc. and its affiliates.
--
-- This source code is licensed under the MIT license found in the
-- LICENSE file in the root directory of this source tree.
--
name: retrie
version: 1.2.0.1
synopsis: A powerful, easy-to-use codemodding tool for Haskell.
homepage: https://github.com/facebookincubator/retrie
bug-reports: https://github.com/facebookincubator/retrie/issues
license: MIT
license-file: LICENSE
author: Andrew Farmer <[email protected]>
maintainer: Andrew Farmer <[email protected]>
copyright: Copyright (c) Facebook, Inc. and its affiliates.
category: Development
build-type: Simple
cabal-version: >=1.10
extra-source-files:
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
README.md
tests/inputs/*.custom
tests/inputs/*.test
tested-with: GHC ==9.2.1
description:
Retrie is a tool for codemodding Haskell. Key goals include:
.
* Speed: Efficiently rewrite in large (>1 million line) codebases.
* Safety: Avoids large classes of codemod-related errors.
* Ease-of-use: Haskell syntax instead of regular expressions. No hand-rolled AST traversals.
.
This package provides a command-line tool (@retrie@) and a library
("Retrie") for making equational edits to Haskell code.
.
Please see the [README](#readme) for examples and usage.
library
exposed-modules:
Retrie,
Retrie.AlphaEnv,
Retrie.CPP,
Retrie.Context,
Retrie.Debug,
Retrie.Elaborate,
Retrie.ExactPrint,
Retrie.ExactPrint.Annotated,
Retrie.Expr,
Retrie.Fixity,
Retrie.FreeVars,
Retrie.GHC,
Retrie.GroundTerms,
Retrie.Monad,
Retrie.Options,
Retrie.PatternMap.Bag,
Retrie.PatternMap.Class,
Retrie.PatternMap.Instances,
Retrie.Pretty,
Retrie.Quantifiers,
Retrie.Query,
Retrie.Replace,
Retrie.Rewrites,
Retrie.Rewrites.Function,
Retrie.Rewrites.Patterns,
Retrie.Rewrites.Rules,
Retrie.Rewrites.Types,
Retrie.Run,
Retrie.Subst,
Retrie.Substitution,
Retrie.SYB,
Retrie.Types,
Retrie.Universe,
Retrie.Util
GHC-Options: -Wall
build-depends:
ansi-terminal >= 0.10.3 && < 0.12,
async >= 2.2.2 && < 2.3,
base >= 4.11 && < 4.17,
bytestring >= 0.10.8 && < 0.12,
containers >= 0.5.11 && < 0.7,
data-default >= 0.7.1 && < 0.8,
directory >= 1.3.1 && < 1.4,
filepath >= 1.4.2 && < 1.5,
ghc >= 9.2,
ghc-exactprint >= 1.4.0 && < 1.6,
list-t >= 1.0.4 && < 1.1,
mtl >= 2.2.2 && < 2.3,
optparse-applicative >= 0.15.1 && < 0.17,
process >= 1.6.3 && < 1.7,
random-shuffle >= 0.0.4 && < 0.1,
syb >= 0.7.1 && < 0.8,
text >= 1.2.3 && < 2.1,
transformers >= 0.5.5 && < 0.6,
unordered-containers >= 0.2.10 && < 0.3
default-language: Haskell2010
Flag BuildExecutable
Description: build the retrie executable
Default: True
executable retrie
if flag(BuildExecutable)
Buildable: True
else
Buildable: False
main-is:
Main.hs
hs-source-dirs: bin hse
other-modules: Fixity
GHC-Options: -Wall
build-depends:
retrie,
base >= 4.11 && < 4.17,
haskell-src-exts >= 1.23.0 && < 1.24,
ghc-paths
default-language: Haskell2010
executable demo-retrie
if flag(BuildExecutable)
Buildable: True
else
Buildable: False
main-is:
Main.hs
hs-source-dirs: demo hse
other-modules: Fixity
GHC-Options: -Wall
build-depends:
retrie,
base >= 4.11 && < 4.17,
haskell-src-exts >= 1.23.0 && < 1.24,
ghc-paths
default-language: Haskell2010
test-suite test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
AllTests,
Annotated,
CPP,
Demo,
Dependent,
Exclude,
Fixity,
Golden,
GroundTerms,
Ignore,
ParseQualified,
Targets,
Util
hs-source-dirs: tests hse
default-language: Haskell2010
GHC-Options: -Wall
build-depends:
retrie,
HUnit,
base,
containers,
data-default,
deepseq,
directory,
exceptions,
filepath,
ghc,
ghc-exactprint,
ghc-paths,
haskell-src-exts,
mtl,
optparse-applicative,
process,
syb,
tasty,
tasty-hunit,
temporary,
text,
unordered-containers
source-repository head
type: git
location: https://github.com/facebookincubator/retrie