summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cwality-maps/Config.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cwality-maps/Config.hs b/cwality-maps/Config.hs
index 1317f72..38c61ed 100644
--- a/cwality-maps/Config.hs
+++ b/cwality-maps/Config.hs
@@ -16,7 +16,7 @@ import Universum
import Data.List (isSuffixOf)
import qualified Data.Map.Strict as M
-import Data.Tiled (LoadResult (Loaded), Tiledmap,
+import Data.Tiled (Tiledmap,
loadTiledmap)
import Lens.Micro.Platform (makeLenses, traverseOf)
import System.Directory (listDirectory)
@@ -55,7 +55,7 @@ loadConfig path = do
list <- forM maps $ \mapname ->
loadTiledmap (path </> mapname) >>= \case
- Loaded tmap -> pure (toText mapname, tmap)
+ Right tmap -> pure (toText mapname, tmap)
err -> error (show err)
pure (path, M.fromList list)