1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00

fix lints and bad imports

This commit is contained in:
Patrick Thomson 2018-07-13 11:59:45 -04:00
parent d57f844717
commit 85bc3dbda6
8 changed files with 3 additions and 11 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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 (,)

View File

@ -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)

View File

@ -5,7 +5,6 @@ module Data.Semigroup.App
) where
import Control.Applicative
import Data.Semigroup
-- $setup
-- >>> import Test.QuickCheck

View File

@ -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)

View File

@ -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.
--