-
Notifications
You must be signed in to change notification settings - Fork 20
/
fortran-src.cabal
374 lines (368 loc) · 12.3 KB
/
fortran-src.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack
name: fortran-src
version: 0.16.3
synopsis: Parsers and analyses for Fortran standards 66, 77, 90, 95 and 2003 (partial).
description: Provides lexing, parsing, and basic analyses of Fortran code covering standards: FORTRAN 66, FORTRAN 77, Fortran 90, Fortran 95, Fortran 2003 (partial) and some legacy extensions. Includes data flow and basic block analysis, a renamer, and type analysis. For example usage, see the @<https://hackage.haskell.org/package/camfort CamFort>@ project, which uses fortran-src as its front end.
category: Language
homepage: https://github.com/camfort/fortran-src#readme
bug-reports: https://github.com/camfort/fortran-src/issues
author: Mistral Contrastin,
Matthew Danish,
Dominic Orchard,
Andrew Rice
maintainer: [email protected],
Ben Orchard
license: Apache-2.0
license-file: LICENSE
build-type: Simple
tested-with:
GHC >= 9.0
extra-source-files:
README.md
CHANGELOG.md
test-data/f77-include/foo.f
test-data/f77-include/no-newline/foo.f
test-data/module/leaf.f90
test-data/module/mid1.f90
test-data/module/mid2.f90
test-data/module/top.f90
test-data/rewriter/replacementsmap-columnlimit/001_foo.f
test-data/rewriter/replacementsmap-columnlimit/001_foo.f.expected
test-data/rewriter/replacementsmap-columnlimit/002_other.f
test-data/rewriter/replacementsmap-columnlimit/002_other.f.expected
test-data/rewriter/replacementsmap-columnlimit/003_multiline.f
test-data/rewriter/replacementsmap-columnlimit/003_multiline.f.expected
test-data/rewriter/replacementsmap-columnlimit/004_comment.f
test-data/rewriter/replacementsmap-columnlimit/004_comment.f.expected
test-data/rewriter/replacementsmap-columnlimit/005_removals.f
test-data/rewriter/replacementsmap-columnlimit/005_removals.f.expected
test-data/rewriter/replacementsmap-columnlimit/006_linewrap_heuristic.f
test-data/rewriter/replacementsmap-columnlimit/006_linewrap_heuristic.f.expected
test-data/rewriter/replacementsmap-insertion/001_foo.f
test-data/rewriter/replacementsmap-insertion/001_foo.f.expected
test-data/rewriter/replacementsmap-overlapping-filtered/001_foo.f
test-data/rewriter/replacementsmap-overlapping-filtered/001_foo.f.expected
test-data/rewriter/replacementsmap-overlapping/001_foo.f
test-data/rewriter/replacementsmap-overlapping/001_foo.f.expected
test-data/rewriter/replacementsmap-padimplicitcomment/001_foo.f
test-data/rewriter/replacementsmap-padimplicitcomment/001_foo.f.expected
test-data/rewriter/replacementsmap-simple/001_foo.f
test-data/rewriter/replacementsmap-simple/001_foo.f.expected
test-data/rewriter/replacementsmap-simple/002_foo.f
test-data/rewriter/replacementsmap-simple/002_foo.f.expected
test-data/rewriter/replacementsmap-simple/003_foo.f
test-data/rewriter/replacementsmap-simple/003_foo.f.expected
test-data/rewriter/replacementsmap-simple/004_unicode.f
test-data/rewriter/replacementsmap-simple/004_unicode.f.expected
test-data/rewriter/replacementsmap-simple/005_unicode.f
test-data/rewriter/replacementsmap-simple/005_unicode.f.expected
test-data/rewriter/temp-failure/fail.f
source-repository head
type: git
location: https://github.com/camfort/fortran-src
library
exposed-modules:
Language.Fortran.Analysis
Language.Fortran.Analysis.BBlocks
Language.Fortran.Analysis.DataFlow
Language.Fortran.Analysis.ModGraph
Language.Fortran.Analysis.Renaming
Language.Fortran.Analysis.SemanticTypes
Language.Fortran.Analysis.Types
Language.Fortran.AST
Language.Fortran.AST.AList
Language.Fortran.AST.Annotated
Language.Fortran.AST.Common
Language.Fortran.AST.Literal
Language.Fortran.AST.Literal.Boz
Language.Fortran.AST.Literal.Complex
Language.Fortran.AST.Literal.Real
Language.Fortran.Common.Array
Language.Fortran.Intrinsics
Language.Fortran.LValue
Language.Fortran.Parser
Language.Fortran.Parser.Fixed.Fortran66
Language.Fortran.Parser.Fixed.Fortran77
Language.Fortran.Parser.Fixed.Lexer
Language.Fortran.Parser.Fixed.Utils
Language.Fortran.Parser.Free.Fortran2003
Language.Fortran.Parser.Free.Fortran90
Language.Fortran.Parser.Free.Fortran95
Language.Fortran.Parser.Free.Lexer
Language.Fortran.Parser.Free.Utils
Language.Fortran.Parser.LexerUtils
Language.Fortran.Parser.Monad
Language.Fortran.Parser.ParserUtils
Language.Fortran.PrettyPrint
Language.Fortran.Repr
Language.Fortran.Repr.Compat.Natural
Language.Fortran.Repr.Eval.Common
Language.Fortran.Repr.Eval.Type
Language.Fortran.Repr.Eval.Value
Language.Fortran.Repr.Eval.Value.Op
Language.Fortran.Repr.Tmp
Language.Fortran.Repr.Type
Language.Fortran.Repr.Type.Array
Language.Fortran.Repr.Type.Scalar
Language.Fortran.Repr.Type.Scalar.Common
Language.Fortran.Repr.Type.Scalar.Complex
Language.Fortran.Repr.Type.Scalar.Int
Language.Fortran.Repr.Type.Scalar.Real
Language.Fortran.Repr.Type.Scalar.String
Language.Fortran.Repr.Util
Language.Fortran.Repr.Value
Language.Fortran.Repr.Value.Common
Language.Fortran.Repr.Value.Machine
Language.Fortran.Repr.Value.Scalar
Language.Fortran.Repr.Value.Scalar.Common
Language.Fortran.Repr.Value.Scalar.Complex
Language.Fortran.Repr.Value.Scalar.Int
Language.Fortran.Repr.Value.Scalar.Int.Idealized
Language.Fortran.Repr.Value.Scalar.Int.Machine
Language.Fortran.Repr.Value.Scalar.Logical
Language.Fortran.Repr.Value.Scalar.Logical.Idealized
Language.Fortran.Repr.Value.Scalar.Logical.Machine
Language.Fortran.Repr.Value.Scalar.Machine
Language.Fortran.Repr.Value.Scalar.Real
Language.Fortran.Repr.Value.Scalar.String
Language.Fortran.Rewriter
Language.Fortran.Rewriter.Internal
Language.Fortran.Transformation.Disambiguation.Function
Language.Fortran.Transformation.Disambiguation.Intrinsic
Language.Fortran.Transformation.Grouping
Language.Fortran.Transformation.Monad
Language.Fortran.Util.Files
Language.Fortran.Util.FirstParameter
Language.Fortran.Util.ModFile
Language.Fortran.Util.Position
Language.Fortran.Util.SecondParameter
Language.Fortran.Version
Text.PrettyPrint.GenericPretty.Orphans
Text.PrettyPrint.GenericPretty.ViaShow
other-modules:
Paths_fortran_src
hs-source-dirs:
src
default-extensions:
TupleSections
EmptyCase
LambdaCase
InstanceSigs
BangPatterns
ExplicitNamespaces
DerivingStrategies
StandaloneDeriving
DeriveAnyClass
DeriveGeneric
DeriveDataTypeable
DeriveFunctor
DeriveFoldable
DeriveTraversable
DeriveLift
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
GADTs
PolyKinds
RoleAnnotations
RankNTypes
TypeApplications
DefaultSignatures
TypeFamilies
DataKinds
MagicHash
BinaryLiterals
ScopedTypeVariables
TypeOperators
ghc-options: -Wall -fno-warn-tabs
build-tools:
alex >=3.1
, happy >=1.19
build-depends:
GenericPretty >=1.2.2 && <2
, array ==0.5.*
, base >=4.6 && <5
, binary >=0.8.3.0 && <0.11
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.7
, deepseq >=1.4 && <1.6
, directory >=1.2 && <2
, either >=5.0.1.1 && <5.1
, fgl ==5.*
, filepath ==1.4.*
, mtl >=2.2 && <3
, pretty >=1.1 && <2
, process >=1.2.0.0
, singletons ==3.0.*
, singletons-base >=3.0 && <3.4
, singletons-th >=3.0 && <3.4
, temporary >=1.2 && <1.4
, text >=1.2 && <2.2
, uniplate >=1.6 && <2
default-language: Haskell2010
if os(windows)
cpp-options: -DFS_DISABLE_WIN_BROKEN_TESTS
executable fortran-src
main-is: Main.hs
other-modules:
Paths_fortran_src
hs-source-dirs:
app
default-extensions:
TupleSections
EmptyCase
LambdaCase
InstanceSigs
BangPatterns
ExplicitNamespaces
DerivingStrategies
StandaloneDeriving
DeriveAnyClass
DeriveGeneric
DeriveDataTypeable
DeriveFunctor
DeriveFoldable
DeriveTraversable
DeriveLift
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
GADTs
PolyKinds
RoleAnnotations
RankNTypes
TypeApplications
DefaultSignatures
TypeFamilies
DataKinds
MagicHash
BinaryLiterals
ScopedTypeVariables
TypeOperators
ghc-options: -Wall -fno-warn-tabs
build-depends:
GenericPretty >=1.2.2 && <2
, array ==0.5.*
, base >=4.6 && <5
, binary >=0.8.3.0 && <0.11
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.7
, deepseq >=1.4 && <1.6
, directory >=1.2 && <2
, either >=5.0.1.1 && <5.1
, fgl ==5.*
, filepath ==1.4.*
, fortran-src
, mtl >=2.2 && <3
, pretty >=1.1 && <2
, process >=1.2.0.0
, singletons ==3.0.*
, singletons-base >=3.0 && <3.4
, singletons-th >=3.0 && <3.4
, temporary >=1.2 && <1.4
, text >=1.2 && <2.2
, uniplate >=1.6 && <2
default-language: Haskell2010
if os(windows)
cpp-options: -DFS_DISABLE_WIN_BROKEN_TESTS
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Language.Fortran.Analysis.BBlocksSpec
Language.Fortran.Analysis.DataFlowSpec
Language.Fortran.Analysis.ModFileSpec
Language.Fortran.Analysis.ModGraphSpec
Language.Fortran.Analysis.RenamingSpec
Language.Fortran.Analysis.SemanticTypesSpec
Language.Fortran.Analysis.TypesSpec
Language.Fortran.AnalysisSpec
Language.Fortran.AST.Literal.BozSpec
Language.Fortran.AST.Literal.RealSpec
Language.Fortran.Parser.Fixed.Fortran66Spec
Language.Fortran.Parser.Fixed.Fortran77.IncludeSpec
Language.Fortran.Parser.Fixed.Fortran77.ParserSpec
Language.Fortran.Parser.Fixed.LexerSpec
Language.Fortran.Parser.Free.Common
Language.Fortran.Parser.Free.Fortran2003Spec
Language.Fortran.Parser.Free.Fortran2008Spec
Language.Fortran.Parser.Free.Fortran90Spec
Language.Fortran.Parser.Free.Fortran95Spec
Language.Fortran.Parser.Free.LexerSpec
Language.Fortran.Parser.MonadSpec
Language.Fortran.PrettyPrintSpec
Language.Fortran.Repr.EvalSpec
Language.Fortran.Rewriter.InternalSpec
Language.Fortran.RewriterSpec
Language.Fortran.Transformation.Disambiguation.FunctionSpec
Language.Fortran.Transformation.GroupingSpec
Language.Fortran.Util.FirstParameterSpec
Language.Fortran.Util.SecondParameterSpec
TestUtil
Paths_fortran_src
hs-source-dirs:
test
default-extensions:
TupleSections
EmptyCase
LambdaCase
InstanceSigs
BangPatterns
ExplicitNamespaces
DerivingStrategies
StandaloneDeriving
DeriveAnyClass
DeriveGeneric
DeriveDataTypeable
DeriveFunctor
DeriveFoldable
DeriveTraversable
DeriveLift
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
GADTs
PolyKinds
RoleAnnotations
RankNTypes
TypeApplications
DefaultSignatures
TypeFamilies
DataKinds
MagicHash
BinaryLiterals
ScopedTypeVariables
TypeOperators
ghc-options: -Wall
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
GenericPretty >=1.2.2 && <2
, QuickCheck >=2.10 && <2.15
, array ==0.5.*
, base >=4.6 && <5
, binary >=0.8.3.0 && <0.11
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.7
, deepseq >=1.4 && <1.6
, directory >=1.2 && <2
, either >=5.0.1.1 && <5.1
, fgl ==5.*
, filepath ==1.4.*
, fortran-src
, hspec >=2.2 && <3
, mtl >=2.2 && <3
, pretty >=1.1 && <2
, process >=1.2.0.0
, singletons ==3.0.*
, singletons-base >=3.0 && <3.4
, singletons-th >=3.0 && <3.4
, temporary >=1.2 && <1.4
, text >=1.2 && <2.2
, uniplate >=1.6 && <2
default-language: Haskell2010
if os(windows)
cpp-options: -DFS_DISABLE_WIN_BROKEN_TESTS