<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>autotaker</author_name>
  <author_url>https://blog.hatena.ne.jp/autotaker/</author_url>
  <blog_title>autotaker's blog</blog_title>
  <blog_url>https://autotaker.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>概要 最近、CodeRunnerというAIコンテストの予選BでJSONデータをいじる必要が出てきたのでHaskellでJSONを読めるようにAesonを触ってみた。さらにTemplateHaskellを用いてレコード型の定義からJSONデコーダを自動導出できるようにしてみた。 背景 予選Bの問題は以下のリンクから閲覧できる。coderunner.jp問題自体も面白いが、今回興味があるのはAPIで渡されるJSONデータである。 そのJSONは以下のような仕様になっている。 power: 現在の攻撃力 damage: 今までに与えた合計ダメージ hp: 一番前の敵の体力 maxhp: 一番前の敵の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fautotaker.hatenablog.com%2Fentry%2F2015%2F11%2F08%2F174856&quot; title=&quot;Template HaskellでJSONデコーダの導出 - autotaker&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-08 17:48:56</published>
  <title>Template HaskellでJSONデコーダの導出</title>
  <type>rich</type>
  <url>https://autotaker.hatenablog.com/entry/2015/11/08/174856</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
