summaryrefslogtreecommitdiff
path: root/lib/Tiled2.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-10-30make aeson instances agree with themselvesstuebinm1-182/+69
This cleans up all the old rubble that came from the Tiled package I originally took from hackage. It now uses generics instead of implementing all the ToJSON and FromJSON instances by hand, and (deserialize . serialise) will now actually return a (semantically) equivalent json. It'll now also reject keys that it doesn't know, which required adding some in several places which the tiled package didn't know about (or which were introduced after it was originally written, dunno). Several more Maybes are required now, to represent the difference between e.g. empty lists and on set value, which does make the code slightly weirder in other places …
2021-10-30add tileset property lintingstuebinm1-1/+1
this reorganised the whole linting for tilesets somewhat; it's now very similar to that linting layers, and it may be possible to abstract some of the code away ...
2021-10-01rename to walintstuebinm1-18/+17
2021-09-30nicer json output which leaks less haskell namesstuebinm1-3/+6
2021-09-23very naïve handling of directoriesstuebinm1-15/+24
2021-09-20lint embedded tilesetsstuebinm1-2/+2
2021-09-20lint general map propertiesstuebinm1-2/+2
2021-09-19some properties require non-empty layersstuebinm1-2/+4
2021-09-19support for properties that aren't stringsstuebinm1-13/+29
apparently i couldn't read or something?
2021-09-18can collect dependencies!stuebinm1-2/+2
There's now a Lint type, which may be either a "true lint" (which is a Hint, which contains some message and level of severity), or a Depends, which indicates that this map depends on some ressource or other (and is otherwise treated as a special info Hint in all other cases)
2021-09-18type check propertiesstuebinm1-1/+25
/finally/ figured out that all properties just look like {name, value, type} so now that's abstracted away and Properties.hs doesn't look like javascript anymore
2021-09-16input options, output jsonstuebinm1-1/+1
input options are mostly dummies for now, but some work (e.g. --inpath and --json). Lints can now be optionally printed as json to be reasonably machine-readable (and the json can be pretty-printed to make it human-readable again …).
2021-09-16moving lots of code aroundstuebinm1-0/+0
(also renaming things now that concepts seem a bit clearer)