• Łukasz Dąbek's avatar
    Made parsePackageIndex and updatePackageIndexCacheFile streaming. · 54e1ed29
    Łukasz Dąbek authored
    The parsePackageIndex wasn't streaming because resulting list was
    hidden in two constructors: Either and tuple. By removing that error
    semantics changed in updatePackageIndexCacheFile.
    
    The updatePackageIndexCacheFile problem was sequence call that evaluated
    whole list made by parsePackageIndex. By using lazySequence any error
    during index file parsing will be raised during writing to cache file.
    
    Also removed reacPackageIndexFile, as it wasn't used anywhere as far as
    I can tell. If this is a mistake I'll include it again.
    54e1ed29
IndexUtils.hs 22.8 KB