mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
fix lints and bad imports
This commit is contained in:
parent
d57f844717
commit
85bc3dbda6
@ -31,7 +31,7 @@ getEnv :: Member (Env address) effects => Evaluator address value effects (Envir
|
||||
getEnv = send GetEnv
|
||||
|
||||
-- | Replace the environment.
|
||||
putEnv :: Member (Env address) effects => (Environment address) -> Evaluator address value effects ()
|
||||
putEnv :: Member (Env address) effects => Environment address -> Evaluator address value effects ()
|
||||
putEnv = send . PutEnv
|
||||
|
||||
-- | Add an export to the global export state.
|
||||
|
@ -7,15 +7,12 @@ module Control.Abstract.Roots
|
||||
|
||||
import Control.Abstract.Evaluator
|
||||
import Data.Abstract.Live
|
||||
import Prologue
|
||||
|
||||
|
||||
-- | Value types, e.g. closures, which can root a set of addresses.
|
||||
class ValueRoots address value where
|
||||
-- | Compute the set of addresses rooted by a given value.
|
||||
valueRoots :: value -> Live address
|
||||
|
||||
|
||||
-- | Retrieve the local 'Live' set.
|
||||
askRoots :: Member (Reader (Live address)) effects => Evaluator address value effects (Live address)
|
||||
askRoots = ask
|
||||
|
@ -15,7 +15,6 @@ module Data.Abstract.ModuleTable
|
||||
|
||||
import Data.Abstract.Module
|
||||
import qualified Data.Map as Map
|
||||
import Data.Semigroup
|
||||
import GHC.Generics (Generic1)
|
||||
import Prelude hiding (lookup)
|
||||
import Prologue
|
||||
|
@ -8,7 +8,6 @@ module Data.Functor.Both
|
||||
|
||||
import Data.Bifunctor.Join as X
|
||||
import Data.Functor.Classes
|
||||
import Data.Semigroup
|
||||
|
||||
-- | A computation over both sides of a pair.
|
||||
type Both = Join (,)
|
||||
|
@ -13,7 +13,6 @@ module Data.Functor.Classes.Generic
|
||||
|
||||
import Data.Functor.Classes
|
||||
import Data.List (intersperse)
|
||||
import Data.Semigroup
|
||||
import GHC.Generics
|
||||
import Text.Show (showListWith)
|
||||
|
||||
|
@ -5,7 +5,6 @@ module Data.Semigroup.App
|
||||
) where
|
||||
|
||||
import Control.Applicative
|
||||
import Data.Semigroup
|
||||
|
||||
-- $setup
|
||||
-- >>> import Test.QuickCheck
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DeriveAnyClass, DuplicateRecordFields #-}
|
||||
{-# LANGUAGE DeriveAnyClass, DuplicateRecordFields, TupleSections #-}
|
||||
module Language.Ruby.Syntax where
|
||||
|
||||
import Control.Monad (unless)
|
||||
@ -81,7 +81,7 @@ doRequire :: ( AbstractValue address value effects
|
||||
doRequire path = do
|
||||
result <- lookupModule path
|
||||
case result of
|
||||
Nothing -> flip (,) (boolean True) . fst <$> load path
|
||||
Nothing -> (, boolean True) . fst <$> load path
|
||||
Just (env, _) -> pure (env, boolean False)
|
||||
|
||||
|
||||
|
@ -9,7 +9,6 @@ import Algebra.Graph.Export hiding ((<+>))
|
||||
import Algebra.Graph.Export.Dot hiding (export)
|
||||
import Data.List
|
||||
import Data.String
|
||||
import Prologue
|
||||
|
||||
-- | Serialize a graph to DOT format.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user