Consistent filesystem interaction across GHC versions (deprecated)