License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Load/save logic for achievements.
Synopsis
- getSwarmAchievementsPath :: Bool -> IO FilePath
- loadAchievementsInfo :: (Has (Accum (Seq SystemFailure)) sig m, Has (Lift IO) sig m) => m [Attainment]
- saveAchievementsInfo :: [Attainment] -> IO ()
Documentation
getSwarmAchievementsPath :: Bool -> IO FilePath Source #
Get path to swarm achievements, optionally creating necessary directories.
loadAchievementsInfo :: (Has (Accum (Seq SystemFailure)) sig m, Has (Lift IO) sig m) => m [Attainment] Source #
Load saved info about achievements from XDG data directory. Returns a tuple of warnings and attained achievements.
saveAchievementsInfo :: [Attainment] -> IO () Source #
Save info about achievements to XDG data directory.