diff options
author | stuebinm | 2022-02-28 00:39:54 +0100 |
---|---|---|
committer | stuebinm | 2022-02-28 00:39:54 +0100 |
commit | 8a201e8658c9365d301a7cda9077ddf005b014c9 (patch) | |
tree | c2f400c9c7d52c179682e57061709391b0ca05bd /tiled | |
parent | 55c2994e856ceaf82edd06587e2faffb7c58950c (diff) |
separate tiled modules out into own package
Diffstat (limited to '')
-rw-r--r-- | tiled/Data/Tiled.hs (renamed from lib/Tiled.hs) | 3 | ||||
-rw-r--r-- | tiled/Data/Tiled/Abstract.hs (renamed from lib/TiledAbstract.hs) | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Tiled.hs b/tiled/Data/Tiled.hs index 3162dfd..046a080 100644 --- a/lib/Tiled.hs +++ b/tiled/Data/Tiled.hs @@ -15,7 +15,7 @@ -- cover some of the types and records that are available in the format. For -- those you should read the TMX documentation at -- http://doc.mapeditor.org/en/latest/reference/tmx-map-format/ -module Tiled where +module Data.Tiled where import Universum @@ -383,6 +383,7 @@ instance ToJSON Tiledmap where toJSON = genericToJSON (aesonOptions 8) data LoadResult = Loaded Tiledmap | IOErr String | DecodeErr String + deriving Show -- | Load a Tiled map from the given 'FilePath'. loadTiledmap :: FilePath -> IO LoadResult diff --git a/lib/TiledAbstract.hs b/tiled/Data/Tiled/Abstract.hs index 9fd2df0..4b2e15d 100644 --- a/lib/TiledAbstract.hs +++ b/tiled/Data/Tiled/Abstract.hs @@ -1,11 +1,11 @@ {-# LANGUAGE OverloadedStrings #-} -module TiledAbstract where +module Data.Tiled.Abstract where import Universum import qualified Data.Vector as V -import Tiled (Layer (..), Object (..), Property (..), +import Data.Tiled (Layer (..), Object (..), Property (..), PropertyValue (..), Tile (..), Tiledmap (..), Tileset (..)) |