1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Merge remote-tracking branch 'origin/master' into failure-is-just-success-rounded-down

This commit is contained in:
Patrick Thomson 2019-12-05 10:36:42 -05:00
commit e938c56ff6
3 changed files with 25 additions and 2 deletions

View File

@ -30,6 +30,9 @@ package semantic-python
package semantic-tags
ghc-options: -Werror
package semantic-ast
ghc-options: -Werror
source-repository-package
type: git
location: https://github.com/tclem/proto-lens-jsonpb

View File

@ -18,7 +18,25 @@ extra-source-files: CHANGELOG.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
library
import: haskell
exposed-modules:
-- other-modules:
-- other-extensions:
@ -33,6 +51,7 @@ library
default-language: Haskell2010
executable semantic-ast
import: haskell
main-is: Main.hs
-- other-modules:
-- other-extensions:

View File

@ -1,14 +1,15 @@
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
module Main (main) where
import System.Environment
import TreeSitter.Unmarshal
import qualified TreeSitter.Python.AST as AST
import qualified TreeSitter.Python as Python
import Source.Range
import Source.Span
import Data.ByteString.Char8
import Data.ByteString (pack, readFile, ByteString)
import Data.ByteString (readFile)
import System.IO (FilePath)
import Options.Applicative hiding (style)
import Data.Semigroup ((<>))