mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
cleanup
This commit is contained in:
parent
e59708dfd6
commit
84b8b5ceb7
@ -36,7 +36,6 @@ module Semantic.IO
|
||||
|
||||
import qualified Control.Exception as Exc
|
||||
import Control.Monad.Effect
|
||||
import Control.Monad.Effect.Reader
|
||||
import Control.Monad.Effect.State
|
||||
import Control.Monad.Effect.Exception
|
||||
import Control.Monad.IO.Class
|
||||
@ -60,7 +59,6 @@ import System.FilePath
|
||||
import System.FilePath.Glob
|
||||
import qualified System.IO as IO
|
||||
import Text.Read hiding (get)
|
||||
import Debug.Trace (trace)
|
||||
|
||||
-- | Read a utf8-encoded file to a 'Blob'.
|
||||
readFile :: forall m. MonadIO m => File -> m (Maybe Blob.Blob)
|
||||
@ -274,7 +272,7 @@ runFiles = interpret $ \ files -> case files of
|
||||
Write (ToPath path) builder -> liftIO (IO.withBinaryFile path IO.WriteMode (`B.hPutBuilder` builder))
|
||||
Write (ToHandle (WriteHandle handle)) builder -> liftIO (B.hPutBuilder handle builder)
|
||||
|
||||
runFilesGuided :: (Member (State Project.Concrete) effs, Member (Exc SomeException) effs, Member IO effs) => Eff (Files ': effs) a -> Eff effs a
|
||||
runFilesGuided :: (Member (State Project.Concrete) effs, Member (Exc SomeException) effs) => Eff (Files ': effs) a -> Eff effs a
|
||||
runFilesGuided = interpret $ \files -> case files of
|
||||
Read (FromHandle _) -> throwError (SomeException HandleNotSupported)
|
||||
Read (FromPairHandle _) -> throwError (SomeException HandleNotSupported)
|
||||
|
@ -1,5 +1,5 @@
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving, TypeFamilies, TypeOperators #-}
|
||||
{-# OPTIONS_GHC -Wno-missing-signatures #-}
|
||||
{-# OPTIONS_GHC -Wno-missing-signatures -Wno-unused-imports #-}
|
||||
module Semantic.Util where
|
||||
|
||||
import Analysis.Abstract.Caching
|
||||
|
Loading…
Reference in New Issue
Block a user