JYU-Utils-0.1.1.2: Some utility functions for JYU projects

Utils.File

Synopsis

Documentation

class Cacheable a whereSource

Cache results of operation op under name fn. if correct file is found, its contents are used, otherwise op is performed and it's results are saved to the filed and returned from the call.

Instances

Binary a => Cacheable a 

cached :: Cacheable a => FilePath -> IO a -> IO aSource