-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathth-desugar.cabal
111 lines (105 loc) · 3.83 KB
/
th-desugar.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
name: th-desugar
version: 1.18
cabal-version: >= 1.10
synopsis: Functions to desugar Template Haskell
homepage: https://github.com/goldfirere/th-desugar
category: Template Haskell
author: Richard Eisenberg <[email protected]>
maintainer: Ryan Scott <[email protected]>
bug-reports: https://github.com/goldfirere/th-desugar/issues
stability: experimental
extra-source-files: README.md, CHANGES.md
license: BSD3
license-file: LICENSE
build-type: Simple
tested-with: GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.8
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
description:
This package provides the Language.Haskell.TH.Desugar module, which desugars
Template Haskell's rich encoding of Haskell syntax into a simpler encoding.
This desugaring discards surface syntax information (such as the use of infix
operators) but retains the original meaning of the TH code. The intended use
of this package is as a preprocessor for more advanced code manipulation
tools. Note that the input to any of the ds... functions should be produced
from a TH quote, using the syntax [| ... |]. If the input to these functions
is a hand-coded TH syntax tree, the results may be unpredictable. In
particular, it is likely that promoted datatypes will not work as expected.
source-repository this
type: git
location: https://github.com/goldfirere/th-desugar.git
tag: v1.10
source-repository head
type: git
location: https://github.com/goldfirere/th-desugar.git
branch: master
library
build-depends:
base >= 4.9 && < 5,
ghc-prim,
template-haskell >= 2.11 && < 2.24,
containers >= 0.5,
mtl >= 2.1 && < 2.4,
ordered-containers >= 0.2.2,
syb >= 0.4,
th-abstraction >= 0.6 && < 0.8,
th-compat >= 0.1 && < 0.2,
th-orphans >= 0.13.11,
transformers-compat >= 0.6.3
default-extensions: TemplateHaskell
exposed-modules: Language.Haskell.TH.Desugar
Language.Haskell.TH.Desugar.Expand
Language.Haskell.TH.Desugar.Lift
Language.Haskell.TH.Desugar.OMap
Language.Haskell.TH.Desugar.OMap.Strict
Language.Haskell.TH.Desugar.OSet
Language.Haskell.TH.Desugar.Subst
Language.Haskell.TH.Desugar.Subst.Capturing
Language.Haskell.TH.Desugar.Sweeten
other-modules: Language.Haskell.TH.Desugar.AST
Language.Haskell.TH.Desugar.Core
Language.Haskell.TH.Desugar.FV
Language.Haskell.TH.Desugar.Match
Language.Haskell.TH.Desugar.Reify
Language.Haskell.TH.Desugar.Util
default-language: Haskell2010
ghc-options: -Wall
test-suite spec
type: exitcode-stdio-1.0
ghc-options: -Wall
default-language: Haskell2010
default-extensions: TemplateHaskell
hs-source-dirs: Test
main-is: Run.hs
other-modules: Dec
DsDec
FakeSums
FakeTuples
ReifyTypeCUSKs
ReifyTypeSigs
Splices
T158Exp
T159Decs
T183
build-depends:
base >= 4 && < 5,
ghc-prim,
template-haskell,
containers >= 0.5,
mtl >= 2.1,
syb >= 0.4,
HUnit >= 1.2,
hspec >= 1.3,
th-abstraction,
th-desugar,
th-orphans