Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • 75389691-a67c-422a-91e9-aa58bfb5-main-patch-32205
  • test-pipe
  • extended-scripts
  • structured-badges
  • guix-pipeline
  • cabal-pipeline
7 results

CheckMap.hs

  • stuebinm's avatar
    d2983b86
    make aeson instances agree with themselves · d2983b86
    stuebinm authored
    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 …
    make aeson instances agree with themselves
    stuebinm authored
    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 …