summaryrefslogtreecommitdiff
path: root/games-roguelike/mazesofmonad/files/mazesofmonad-1.0.9-time-1.5.patch
blob: 11ef34ef45f9cb7c047f697e63c98fb6ebfc2427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/MazesOfMonad.cabal b/MazesOfMonad.cabal
index db5e5bf..c3b427b 100644
--- a/MazesOfMonad.cabal
+++ b/MazesOfMonad.cabal
@@ -34,3 +34,3 @@ Executable mazesofmonad
     regex-posix, containers, filepath, directory, pretty, 
-    array, mtl, old-locale, time					 
+    array, mtl, old-locale, time, time-locale-compat 
 
diff --git a/src/MoresmauJP/Rpg/Save.hs b/src/MoresmauJP/Rpg/Save.hs
index 12965b7..238b9b9 100644
--- a/src/MoresmauJP/Rpg/Save.hs
+++ b/src/MoresmauJP/Rpg/Save.hs
@@ -10,2 +10,3 @@ import Data.Maybe
 import Data.Time
+import qualified Data.Time.Locale.Compat as DTLC
 
@@ -112,3 +113,3 @@ listGames rs name= do
       if isJust $ bckGame bs 
-        then return $ Just (dropExtension x,formatTime defaultTimeLocale (iso8601DateFormat $ Just "%R") $ bckDate bs) 
+        then return $ Just (dropExtension x,formatTime DTLC.defaultTimeLocale (DTLC.iso8601DateFormat $ Just "%R") $ bckDate bs) 
         else return Nothing