mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Fix tests and squash warnings.
This commit is contained in:
parent
b7829dcde9
commit
87a658d45b
@ -13,7 +13,6 @@ import qualified Data.Core.Parser as Core.Parser
|
||||
import qualified Data.Core.Pretty as Core.Pretty
|
||||
import Data.ByteString.Char8 (ByteString)
|
||||
import qualified Data.ByteString.Char8 as ByteString
|
||||
import Data.List.NonEmpty (NonEmpty)
|
||||
import System.Process
|
||||
import qualified Text.Trifecta as Trifecta
|
||||
|
||||
|
@ -35,7 +35,7 @@ instance ToJSON1 Named where
|
||||
-- The correct thing to do here is to manually munge the bytestring
|
||||
-- together as a builder, but we don't even hit this code path,
|
||||
-- so it will do for now.
|
||||
liftToEncoding f _ (Named name a) = f a
|
||||
liftToEncoding f _ (Named _name a) = f a
|
||||
|
||||
instance ToJSON2 Incr where
|
||||
liftToJSON2 f _ g _ = \case
|
||||
|
@ -29,7 +29,6 @@ import Data.String (fromString)
|
||||
import GHC.Stack
|
||||
import qualified Language.Python.Core as Py
|
||||
import Prelude hiding (fail)
|
||||
import qualified Source.Span as Source (Span)
|
||||
import Streaming
|
||||
import qualified Streaming.Prelude as Stream
|
||||
import qualified Streaming.Process
|
||||
@ -100,7 +99,7 @@ fixtureTestTreeForFile fp = HUnit.testCaseSteps (Path.toString fp) $ \step -> wi
|
||||
. runFail
|
||||
. runReader (fromString @Py.SourcePath . Path.toString $ fp)
|
||||
. runReader @Py.Bindings mempty
|
||||
. Py.compile @(TSP.Module Source.Span) @_ @(Term (Ann :+: Core))
|
||||
. Py.compile @TSP.Module @_ @(Term (Ann :+: Core))
|
||||
<$> result
|
||||
|
||||
for_ directives $ \directive -> do
|
||||
|
Loading…
Reference in New Issue
Block a user