mirror of
https://github.com/github/semantic.git
synced 2024-12-18 20:31:55 +03:00
Import whack-a-mole.
This commit is contained in:
parent
0e58b0cdde
commit
6af70476d0
@ -27,8 +27,7 @@ module Data.Blob
|
|||||||
|
|
||||||
import Prologue
|
import Prologue
|
||||||
|
|
||||||
import Analysis.File (fileBody)
|
import Analysis.File (File (..))
|
||||||
import qualified Analysis.File
|
|
||||||
import Analysis.Language as Language
|
import Analysis.Language as Language
|
||||||
import Control.Effect.Error
|
import Control.Effect.Error
|
||||||
import Data.Aeson
|
import Data.Aeson
|
||||||
@ -44,8 +43,8 @@ import qualified System.Path.PartClass as Path.PartClass
|
|||||||
|
|
||||||
-- | The source, path information, and language of a file read from disk.
|
-- | The source, path information, and language of a file read from disk.
|
||||||
data Blob = Blob
|
data Blob = Blob
|
||||||
{ blobSource :: Source -- ^ The UTF-8 encoded source text of the blob.
|
{ blobSource :: Source -- ^ The UTF-8 encoded source text of the blob.
|
||||||
, blobFile :: File -- ^ Path/language information for this blob.
|
, blobFile :: File Language -- ^ Path/language information for this blob.
|
||||||
} deriving (Show, Eq)
|
} deriving (Show, Eq)
|
||||||
|
|
||||||
blobLanguage :: Blob -> Language
|
blobLanguage :: Blob -> Language
|
||||||
|
@ -13,7 +13,7 @@ import Prologue
|
|||||||
|
|
||||||
import Analysis.File as File
|
import Analysis.File as File
|
||||||
import qualified Control.Concurrent.Async as Async
|
import qualified Control.Concurrent.Async as Async
|
||||||
import Data.Blob hiding (File)
|
import Data.Blob
|
||||||
import qualified Data.ByteString as B
|
import qualified Data.ByteString as B
|
||||||
import Data.Language
|
import Data.Language
|
||||||
import Semantic.IO
|
import Semantic.IO
|
||||||
|
Loading…
Reference in New Issue
Block a user