Remove more (dead) Streaming code

This commit is contained in:
2022-08-21 22:03:15 +01:00
parent cccab45650
commit c35dbf1ba8
12 changed files with 24 additions and 93 deletions
+5 -4
View File
@@ -1,11 +1,12 @@
module Dodge.LoadSeed
where
module Dodge.LoadSeed where
import Data.Functor
import System.Directory
import Text.Read
loadSeed :: IO (Maybe Int)
loadSeed = maybeReadFile "saveSlot/seed" >>= (return . (>>= readMaybe))
loadSeed = maybeReadFile "saveSlot/seed" <&> (>>= readMaybe)
maybeReadFile :: String -> IO (Maybe String)
maybeReadFile fpath = do
fexists <- doesFileExist fpath