mirror of
https://github.com/github/semantic.git
synced 2024-11-23 08:27:56 +03:00
104 lines
2.6 KiB
Plaintext
104 lines
2.6 KiB
Plaintext
cabal-version: 2.4
|
|
|
|
name: semantic-ruby
|
|
version: 0.0.0.0
|
|
synopsis: Semantic support for Ruby.
|
|
description: Semantic support for Ruby.
|
|
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
|
|
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
|
|
if (impl(ghc >= 8.8))
|
|
ghc-options: -Wno-missing-deriving-strategies
|
|
if (impl(ghc >= 8.10))
|
|
ghc-options:
|
|
-Wno-missing-safe-haskell-mode
|
|
-Wno-prepositive-qualified-module
|
|
if (impl(ghc >= 9.2))
|
|
ghc-options:
|
|
-Wno-missing-kind-signatures
|
|
cpp-options:
|
|
-DBAZEL_BUILD=0
|
|
|
|
library
|
|
import: haskell
|
|
exposed-modules:
|
|
Language.Ruby
|
|
Language.Ruby.AST
|
|
Language.Ruby.Grammar
|
|
Language.Ruby.Tags
|
|
hs-source-dirs: src
|
|
build-depends:
|
|
, base >= 4.13 && < 5
|
|
, fused-effects ^>= 1.1
|
|
, semantic-ast
|
|
, semantic-proto ^>= 0
|
|
, semantic-source ^>= 0.2
|
|
, semantic-tags ^>= 0.0
|
|
, template-haskell >= 2.15 && < 2.19
|
|
, text ^>= 1.2.3
|
|
, tree-sitter ^>= 0.9
|
|
, tree-sitter-ruby ^>= 0.5.0.2
|
|
|
|
test-suite test
|
|
import: haskell
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: test
|
|
main-is: PreciseTest.hs
|
|
build-depends:
|
|
, base
|
|
, semantic-ast
|
|
, semantic-ruby
|
|
, tasty
|
|
, tree-sitter-ruby ^>= 0.5.0.2
|
|
|
|
executable benchmarks
|
|
import: haskell
|
|
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
|
|
, bytestring
|
|
, gauge ^>= 0.2.5
|
|
, Glob
|
|
, semantic-ast
|
|
, semantic-ruby
|
|
|
|
executable tree-sitter-ruby
|
|
import: haskell
|
|
hs-source-dirs: app
|
|
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m"
|
|
main-is: Main.hs
|
|
build-depends:
|
|
, base
|
|
, bytestring
|
|
, semantic-ast
|
|
, semantic-ruby
|