diff options
author | stuebinm | 2021-11-14 03:09:50 +0100 |
---|---|---|
committer | stuebinm | 2021-11-14 03:09:50 +0100 |
commit | 52b73711fc21e121267318677840a54fbe174b10 (patch) | |
tree | c6e65874b376ca5d0712930796908c3e4f6490d7 /lib/Tiled2.hs | |
parent | 24a0763b4b0a87b5abd488ebca67f4c5ff9b966d (diff) |
Functional jitsiRoomAdminTag adjustment
also yet another typeclass™, because why not?
Diffstat (limited to '')
-rw-r--r-- | lib/Tiled2.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Tiled2.hs b/lib/Tiled2.hs index efa8a07..873e22d 100644 --- a/lib/Tiled2.hs +++ b/lib/Tiled2.hs @@ -339,6 +339,15 @@ instance HasName Layer where instance HasName Tileset where getName = tilesetName +class IsProperty a where + asProperty :: a -> PropertyValue +instance IsProperty PropertyValue where + asProperty = id + {-# INLINE asProperty #-} +instance IsProperty Text where + asProperty = StrProp + {-# INLINE asProperty #-} + data LoadResult = Loaded Tiledmap | IOErr String | DecodeErr String -- | Load a Tiled map from the given 'FilePath'. |