@@ -12,7 +12,7 @@ Maintainer : The Idris Community.
13module Idris.IBC (loadIBC, loadPkgIndex,
13module Idris.IBC (loadIBC, loadPkgIndex,
14 writeIBC, writePkgIndex,
14 writeIBC, writePkgIndex,
15− hasValidIBCVersion, IBCPhase(..),
15+ hasValidIBCVersion, IBCPhase(..),
16 getIBCHash, getImportHashes) where
16 getIBCHash, getImportHashes) where
18import Idris.AbsSyntax
18import Idris.AbsSyntax
@@ -152,7 +152,7 @@ getIBCHash fp
152 case toArchiveOrFail archiveFile of
152 case toArchiveOrFail archiveFile of
153 Left _ -> return 0
153 Left _ -> return 0
154 Right archive -> getEntry 0 "iface_hash" archive
154 Right archive -> getEntry 0 "iface_hash" archive
157getImportHashes :: FilePath -> Idris [(FilePath, Int)]
157getImportHashes :: FilePath -> Idris [(FilePath, Int)]
158getImportHashes fp
158getImportHashes fp
@@ -259,12 +259,12 @@ qhash hash (x:xs) = qhash (hash * 33 + fromIntegral (fromEnum x)) xs
260hashTerm :: Term -> Int
260hashTerm :: Term -> Int
261hashTerm t = qhash 5381 (show t)
261hashTerm t = qhash 5381 (show t)
263hashName :: Name -> Int
263hashName :: Name -> Int
264hashName n = qhash 5381 (show n)
264hashName n = qhash 5381 (show n)
266calculateHash :: IState -> IBCFile -> Int
266calculateHash :: IState -> IBCFile -> Int
267−calculateHash ist f
267+calculateHash ist f
268 = let acc = L.filter exported (ibc_access f) in
268 = let acc = L.filter exported (ibc_access f) in
269 mkHashFrom (map fst acc) (getDefs acc)
269 mkHashFrom (map fst acc) (getDefs acc)
@@ -276,7 +276,7 @@ calculateHash ist f
276 exported _ = False
276 exported _ = False
278 findTms :: [(a, Term, Term)] -> [Term]
278 findTms :: [(a, Term, Term)] -> [Term]
279− findTms = L.concatMap (\ (_, x, y) -> [x, y])
279+ findTms = L.concatMap (\ (_, x, y) -> [x, y])
281 patDef :: Name -> [Term]
281 patDef :: Name -> [Term]