1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 02:58:36 +03:00

🔥 some redundant imports & bindings.

This commit is contained in:
Rob Rix 2016-04-12 04:44:12 -04:00
parent 3239eaf551
commit e6c81e1c22
5 changed files with 1 additions and 5 deletions

View File

@ -12,7 +12,6 @@ import Source
import System.Directory
import System.FilePath
import qualified System.IO as IO
import Data.String
import Data.Text hiding (split)
-- | Returns a rendered diff given a parser, diff arguments and two source blobs.

View File

@ -5,7 +5,6 @@ import Info
import Interpreter
import Language
import Parser
import Patch
import Range
import Renderer
import Source hiding ((++))

View File

@ -12,7 +12,6 @@ import Data.Aeson hiding (json)
import Data.Aeson.Encode
import Data.Functor.Both
import Data.OrderedMap hiding (fromList)
import Data.Text
import Data.Text.Lazy (toStrict)
import Data.Text.Lazy.Builder (toLazyText)
import qualified Data.Text as T

View File

@ -25,7 +25,7 @@ import Data.Text (pack, Text)
-- | Render a timed out file as a truncated diff.
truncatePatch :: DiffArguments -> Both SourceBlob -> Text
truncatePatch arguments blobs = pack $ header blobs ++ "#timed_out\nTruncating diff: timeout reached.\n"
truncatePatch _ blobs = pack $ header blobs ++ "#timed_out\nTruncating diff: timeout reached.\n"
-- | Render a diff in the traditional patch format.
patch :: Renderer a

View File

@ -8,7 +8,6 @@ import Control.Monad.Free
import Data.Foldable
import Data.Functor.Both
import Data.Monoid
import qualified Data.Text as T
import qualified Data.Text.Lazy as TL
import Diff
import Info