Skip to content
#

programming-contests

Here are 300 public repositories matching this topic...

kmyk
kmyk commented Aug 5, 2021

古い書き方だと rewrite rule は構文木を手動で丁寧に組み換えて書いていたのですが、#133 でもっと簡単に書けるようになりました。

旧:

simpleRewriteRule $ \case
  Map' t1 t2 f (Reversed' _ xs) -> return' $ Reversed' t2 (Map' t1 t2 f xs)
  _ -> Nothing

新:

[r| "map/reversed" forall f xs. map f (reversed xs) = reversed (map f xs) |]

古い書き方だと (Jikka の本体の) コンパイル時にその rewrite rule が正しいか検査されなくてバグりがちなのですが、新しい書き方だと

Improve this page

Add a description, image, and links to the programming-contests topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the programming-contests topic, visit your repo's landing page and select "manage topics."

Learn more