File: haskell-src-exts.cabal

package info (click to toggle)
haskell-src-exts 1.23.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,852 kB
  • sloc: haskell: 13,707; makefile: 12
file content (106 lines) | stat: -rw-r--r-- 4,577 bytes parent folder | download | duplicates (3)
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
Name:                   haskell-src-exts
Version:                1.23.1
License:                BSD3
License-File:           LICENSE
Build-Type:             Simple
Author:                 Niklas Broberg
Maintainer:             Dan Burton <danburton.email@gmail.com>
Category:               Language
Synopsis:               Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Description:            Haskell-Source with Extensions (HSE, haskell-src-exts)
                        is a standalone parser for Haskell. In addition to
                        standard Haskell, all extensions implemented in GHC are supported.
                        .
                        Apart from these standard extensions,
                        it also handles regular patterns as per the HaRP extension
                        as well as HSX-style embedded XML syntax.
Homepage:               https://github.com/haskell-suite/haskell-src-exts
Bug-Reports:            https://github.com/haskell-suite/haskell-src-exts/issues
Stability:              Stable
Cabal-Version:          >= 1.10
Tested-With:
                          GHC == 7.8.2
                        , GHC == 7.10.3
                        , GHC == 8.0.2
                        , GHC == 8.2.2
                        , GHC == 8.4.4
                        , GHC == 8.6.5
                        , GHC == 8.8.3
                        , GHC == 8.10.1

Extra-Source-Files:
                        README.md
                        CHANGELOG
                        RELEASENOTES-1.17.0
                        tests/examples/*.hs
                        tests/examples/*.lhs
                        tests/examples/*.hs.parser.golden
                        tests/examples/*.lhs.parser.golden
                        tests/examples/*.hs.exactprinter.golden
                        tests/examples/*.lhs.exactprinter.golden
                        tests/examples/*.hs.prettyprinter.golden
                        tests/examples/*.lhs.prettyprinter.golden
                        tests/examples/*.hs.prettyparser.golden
                        tests/examples/*.lhs.prettyparser.golden
                        tests/Runner.hs
                        tests/Extensions.hs

Library
  Default-language:     Haskell98
  Build-Tools:          happy >= 1.19
  Build-Depends:        array >= 0.1, pretty >= 1.0,
                        base >= 4.5 && < 5,
                        -- this is needed to access GHC.Generics on GHC 7.4
                        ghc-prim
  -- this is needed to access Data.Semigroup and Control.Monad.Fail on GHCs
  -- before 8.0
  if !impl(ghc >= 8.0)
    Build-Depends:
                        semigroups >= 0.18.3,
                        fail == 4.9.*

  Exposed-modules:      Language.Haskell.Exts,
                        Language.Haskell.Exts.Lexer,
                        Language.Haskell.Exts.Pretty,
                        Language.Haskell.Exts.Extension,
                        Language.Haskell.Exts.Build,
                        Language.Haskell.Exts.SrcLoc,

                        Language.Haskell.Exts.Syntax,
                        Language.Haskell.Exts.Fixity,
                        Language.Haskell.Exts.ExactPrint,
                        Language.Haskell.Exts.Parser,
                        Language.Haskell.Exts.Comments

  Other-modules:        Language.Haskell.Exts.ExtScheme,
                        Language.Haskell.Exts.ParseMonad,
                        Language.Haskell.Exts.ParseSyntax,
                        Language.Haskell.Exts.InternalLexer,
                        Language.Haskell.Exts.ParseUtils,
                        Language.Haskell.Exts.InternalParser
                        Language.Preprocessor.Unlit
  Hs-source-dirs:       src
  Ghc-options:          -Wall

Source-Repository head
        Type:           git
        Location:       https://github.com/haskell-suite/haskell-src-exts.git

Test-Suite test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Runner.hs
  other-modules:       Extensions
  GHC-Options:         -threaded -Wall
  Default-language:    Haskell2010
  Build-depends:       base,
                       mtl,
                       containers,
                       haskell-src-exts,
                       smallcheck >= 1.0,
                       tasty >= 0.3,
                       tasty-smallcheck,
                       tasty-golden >= 2.2.2,
                       filepath,
                       directory,
                       pretty-show >= 1.6.16