mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
PGFService: fix a type ambiguity when compiling without C run-time support
The function listCaches returns an empty list instead of the contents of the cached C run-time system PGFs when compiled without C-run-time support This gave rise to an ambiguity in GF.Server.
This commit is contained in:
@@ -86,6 +86,8 @@ newPGFCache _ = do pgfCache <- newCache' PGF.readPGF
|
||||
lblCache <- newCache' (fmap PGF.getDepLabels . readFile)
|
||||
return $ Caches pgfCache lblCache
|
||||
flushPGFCache c = flushCache (pgfCache c)
|
||||
|
||||
listPGFCache :: Caches -> IO ([(FilePath,UTCTime)],[(FilePath,UTCTime)])
|
||||
listPGFCache c = (,) # listCache (pgfCache c) % return []
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user