File: language-javascript.cabal

package info (click to toggle)
haskell-language-javascript 0.7.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 428 kB
  • sloc: haskell: 2,561; yacc: 1,325; makefile: 3; javascript: 2
file content (93 lines) | stat: -rw-r--r-- 3,865 bytes parent folder | download | duplicates (4)
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
Name:                language-javascript
Version:             0.7.1.0
Synopsis:            Parser for JavaScript
Description:         Parses Javascript into an Abstract Syntax Tree (AST).  Initially intended as frontend to hjsmin.
                     .
                     Note: Version 0.5.0 breaks compatibility with prior versions, the AST has been reworked to allow
                     round trip processing of JavaScript.
License:             BSD3
License-file:        LICENSE
Author:              Alan Zimmerman
Maintainer:          Erik de Castro Lopo <erikd@mega-nerd.com>
Copyright:           (c) 2010-2015 Alan Zimmerman
                     (c) 2015-2019 Erik de Castro Lopo
                     (c) 2018      Daniel Gasienica
Category:            Language
Build-type:          Simple
homepage:            https://github.com/erikd/language-javascript
bug-reports:         https://github.com/erikd/language-javascript/issues
Extra-source-files:  README.md
                     ChangeLog.md
                     .ghci
                     test/Unicode.js
                     test/k.js
                     test/unicode.txt
                     src/Language/JavaScript/Parser/Lexer.x

-- Version requirement upped for test support in later Cabal
Cabal-version:   >= 1.9.2


Library
  Build-depends:     base             >= 4       && < 5
                   , array            >= 0.3
                   , mtl              >= 1.1
                   , containers       >= 0.2
                   , blaze-builder    >= 0.2
                   , bytestring       >= 0.9.1
                   , text             >= 1.2
                   , utf8-string      >= 0.3.7 && < 2
  if !impl(ghc>=8.0)
    build-depends:   semigroups       >= 0.16.1

  if impl(ghc >= 7.10)
    build-tools:       happy >= 1.19, alex >= 3.1.4
  else
    if impl(ghc >= 7.8)
      build-tools:       happy >= 1.19, alex >= 3.1
    else
      build-tools:       happy >= 1.18.5, alex >= 3.0.5
  hs-source-dirs: src
  Exposed-modules:     Language.JavaScript.Parser
                       Language.JavaScript.Parser.AST
                       Language.JavaScript.Parser.Grammar7
                       Language.JavaScript.Parser.Lexer
                       Language.JavaScript.Parser.Parser
                       Language.JavaScript.Parser.SrcLocation
                       Language.JavaScript.Pretty.Printer
                       Language.JavaScript.Process.Minify
  Other-modules:       Language.JavaScript.Parser.LexerUtils
                       Language.JavaScript.Parser.ParseError
                       Language.JavaScript.Parser.ParserMonad
                       Language.JavaScript.Parser.Token
  ghc-options:         -Wall -fwarn-tabs

Test-Suite testsuite
  Type: exitcode-stdio-1.0
  Main-is: testsuite.hs
  hs-source-dirs: test
  ghc-options:   -Wall -fwarn-tabs
  build-depends: base, Cabal >= 1.9.2
                 , QuickCheck >= 2
                 , hspec
                 , array            >= 0.3
                 , utf8-light       >= 0.4
                 , containers       >= 0.2
                 , mtl              >= 1.1
                 , utf8-string      >= 0.3.7 && < 2
                 , bytestring       >= 0.9.1
                 , blaze-builder    >= 0.2
                 , language-javascript

  Other-modules:    Test.Language.Javascript.ExpressionParser
                    Test.Language.Javascript.Lexer
                    Test.Language.Javascript.LiteralParser
                    Test.Language.Javascript.Minify
                    Test.Language.Javascript.ModuleParser
                    Test.Language.Javascript.ProgramParser
                    Test.Language.Javascript.RoundTrip
                    Test.Language.Javascript.StatementParser

source-repository head
  type:     git
  location: https://github.com/erikd/language-javascript.git