2019-12-17 00:56:34 +03:00
|
|
|
cabal-version: 2.4
|
|
|
|
|
|
|
|
name: semantic-ruby
|
|
|
|
version: 0.0.0.0
|
|
|
|
synopsis: Semantic support for Ruby.
|
|
|
|
description: Semantic support for Ruby using the semantic-core intermediate language.
|
|
|
|
homepage: https://github.com/github/semantic/tree/master/semantic-ruby#readme
|
|
|
|
bug-reports: https://github.com/github/semantic/issues
|
|
|
|
license: MIT
|
|
|
|
license-file: LICENSE
|
|
|
|
author: The Semantic authors
|
|
|
|
maintainer: opensource+semantic@github.com
|
|
|
|
copyright: (c) 2019 GitHub, Inc.
|
|
|
|
category: Language
|
|
|
|
build-type: Simple
|
|
|
|
stability: alpha
|
|
|
|
extra-source-files: README.md
|
|
|
|
|
|
|
|
tested-with: GHC == 8.6.5
|
|
|
|
|
|
|
|
common haskell
|
|
|
|
default-language: Haskell2010
|
2019-12-18 21:15:43 +03:00
|
|
|
build-depends: base ^>= 4.13
|
2019-12-17 00:56:34 +03:00
|
|
|
, fused-effects ^>= 1.0
|
|
|
|
, fused-syntax
|
|
|
|
, parsers ^>= 0.12.10
|
2020-02-04 21:35:35 +03:00
|
|
|
, semantic-ast
|
2019-12-17 00:56:34 +03:00
|
|
|
, semantic-core ^>= 0.0
|
2020-01-28 20:42:42 +03:00
|
|
|
, semantic-source ^>= 0.0.2
|
2019-12-17 00:56:34 +03:00
|
|
|
, semantic-tags ^>= 0.0
|
2020-01-27 23:49:20 +03:00
|
|
|
, template-haskell ^>= 2.15
|
2019-12-17 00:56:34 +03:00
|
|
|
, text ^>= 1.2.3
|
2020-02-08 03:17:10 +03:00
|
|
|
, tree-sitter ^>= 0.9
|
2020-02-08 03:05:48 +03:00
|
|
|
, tree-sitter-ruby ^>= 0.5.0.1
|
2019-12-17 00:56:34 +03:00
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-Weverything
|
|
|
|
-Wno-missing-local-signatures
|
|
|
|
-Wno-missing-import-lists
|
|
|
|
-Wno-implicit-prelude
|
|
|
|
-Wno-safe
|
|
|
|
-Wno-unsafe
|
|
|
|
-Wno-name-shadowing
|
|
|
|
-Wno-monomorphism-restriction
|
|
|
|
-Wno-missed-specialisations
|
|
|
|
-Wno-all-missed-specialisations
|
|
|
|
-Wno-star-is-type
|
2019-12-18 21:15:43 +03:00
|
|
|
if (impl(ghc >= 8.8))
|
|
|
|
ghc-options: -Wno-missing-deriving-strategies
|
2019-12-17 00:56:34 +03:00
|
|
|
|
|
|
|
library
|
|
|
|
import: haskell
|
|
|
|
exposed-modules:
|
|
|
|
Language.Ruby
|
2020-01-27 23:49:20 +03:00
|
|
|
Language.Ruby.AST
|
2020-01-29 00:10:55 +03:00
|
|
|
Language.Ruby.Grammar
|
2019-12-17 00:56:34 +03:00
|
|
|
Language.Ruby.Tags
|
|
|
|
hs-source-dirs: src
|
2020-02-04 20:34:29 +03:00
|
|
|
|
|
|
|
test-suite test
|
2020-02-06 23:42:56 +03:00
|
|
|
import: haskell
|
2020-02-04 20:34:29 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Test.hs
|
|
|
|
build-depends: base
|
|
|
|
, bytestring ^>= 0.10.8.2
|
|
|
|
, hedgehog >= 0.6 && <2
|
|
|
|
, pathtype ^>= 0.8.1
|
2020-02-20 21:01:46 +03:00
|
|
|
, semantic-ast
|
|
|
|
, semantic-ruby
|
2020-02-04 20:34:29 +03:00
|
|
|
, tasty
|
|
|
|
, tasty-hedgehog
|
|
|
|
, tasty-hunit
|
2020-02-20 21:01:46 +03:00
|
|
|
, text
|
2020-02-04 20:34:29 +03:00
|
|
|
|
|
|
|
executable benchmarks
|
2020-02-06 23:42:56 +03:00
|
|
|
import: haskell
|
2020-02-04 20:34:29 +03:00
|
|
|
hs-source-dirs: bench
|
|
|
|
-- type: exitcode-stdio-1.0
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Parsing
|
|
|
|
ghc-options: -static -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m"
|
|
|
|
build-depends: base
|
|
|
|
, gauge ^>= 0.2.5
|
|
|
|
, bytestring
|
|
|
|
, Glob
|
|
|
|
, lens >= 4.17 && < 4.19
|
|
|
|
, pathtype ^>= 0.8.1
|
2020-02-20 21:01:46 +03:00
|
|
|
, semantic-ruby
|
2020-02-04 20:34:29 +03:00
|
|
|
|
|
|
|
executable tree-sitter-ruby
|
2020-02-06 23:42:56 +03:00
|
|
|
import: haskell
|
|
|
|
hs-source-dirs: app
|
|
|
|
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m"
|
|
|
|
main-is: Main.hs
|
|
|
|
build-depends: base
|
|
|
|
, bytestring
|
2020-02-20 21:01:46 +03:00
|
|
|
, semantic-ruby
|