File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ import HscTypes (HomeModInfo,
36
36
hm_iface ,
37
37
hm_linkable )
38
38
39
+ import qualified Data.Binary as B
39
40
import Data.ByteString (ByteString )
40
- import qualified Data.ByteString.Char8 as BS
41
+ import qualified Data.ByteString.Lazy as LBS
41
42
import Data.Int (Int64 )
42
43
import Data.Text (Text )
44
+ import Data.Time
43
45
import Development.IDE.Import.FindImports (ArtifactsLocation )
44
46
import Development.IDE.Spans.Common
45
47
import Development.IDE.Spans.LocalBindings
@@ -168,11 +170,11 @@ hiFileFingerPrint HiFileResult{..} = hirIfaceFp <> hirLinkableFp
168
170
mkHiFileResult :: ModSummary -> HomeModInfo -> HiFileResult
169
171
mkHiFileResult hirModSummary hirHomeMod = HiFileResult {.. }
170
172
where
171
- hirIfaceFp =
172
- fingerprintToBS . getModuleHash . hm_iface $ hirHomeMod -- will always be two bytes
173
+ hirIfaceFp = fingerprintToBS . getModuleHash . hm_iface $ hirHomeMod -- will always be two bytes
173
174
hirLinkableFp = case hm_linkable hirHomeMod of
174
175
Nothing -> " "
175
- Just l -> BS. pack $ show $ linkableTime l
176
+ Just LM {linkableTime} -> LBS. toStrict $
177
+ B. encode (fromEnum $ utctDay linkableTime, fromEnum $ utctDayTime linkableTime)
176
178
177
179
hirModIface :: HiFileResult -> ModIface
178
180
hirModIface = hm_iface . hirHomeMod
You can’t perform that action at this time.
0 commit comments