aeson-tiled: Aeson instances for the Tiled map editor.

[ bsd3, game-engine, library ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 0.0.0.1, 0.0.1.0, 0.0.2.0, 0.0.2.1, 0.0.2.2, 0.0.2.3 (info)
Change log ChangeLog.md
Dependencies aeson (>=2.0 && <3), base (>=4.7 && <5), bytestring (>=0.10 && <1), containers (>=0.5 && <1), text (>=1.2 && <3), vector (>=0.11 && <1) [details]
License BSD-3-Clause
Copyright (c) 2017 Schell Scivally
Author Schell Scivally
Maintainer aenor.realm@gmai.com
Category Game Engine
Home page https://github.com/haskell-game/aeson-tiled
Source repo head: git clone https://github.com/haskell-game/aeson-tiled
Uploaded by AlexanderBondarenko at 2023-11-08T16:26:43Z
Distributions NixOS:0.0.2.3
Downloads 1458 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-11-08 [all 1 reports]

Readme for aeson-tiled-0.0.2.3

[back to package description]

aeson-tiled

Hackage

Types and instances for Tiled map editor map/.tmj and tileset/.tsj files.

aeson-tiled is the spiritual successor to htiled. htiled uses hxt which relies too heavily on Arrows and is rather hard to work with. Tiled's json export supports 100% of Tiled's features, so there doesn't seem to be much of a point to maintaining a large Arrows-based project when writing Aeson instances for Tiled types is much easier. Hence this project!

The package is geared toward minimal divergence from Tiled type specifications.

Tiled data format is taken at version 1.8.4. Should be compatible down to 1.6 (where the version field changed to string).

GHC versions are supported from 8.10 and follow Stackage LTS + Stackage Nightly + whatever is available on ghcup.

Module structure

The modules are designed for qualified imports and OverloadedRecordDot extension. Everyone has a Generic instance so you can use generic-lens or generic-optics if you wish.

  • Modules under Codec.Tiled.* are concerned with aeson representation, one type at a time. They provide JSON Value translation to concrete types, but not much beyond that. Your application most likely should use its own representation.
  • Modules under Data.Tiled.* are types specific to this package. They are more refined and may be utilized directly.