コンピュータ ソフトウェア
Print ISSN : 0289-6540
GSOL: A Confluence Checker for Haskell Rewrite Rules
DATE Yao FaustinHAMANA Makoto
著者情報
ジャーナル フリー

2022 年 39 巻 3 号 p. 3_82-3_87

詳細
抄録

We present a tool GSOL, a confluence checker for GHC. It checks the confluence property for rewrite rules in a Haskell program by using the confluence checker SOL (Second-Order Laboratory). The Glasgow Haskell Compiler (GHC) allows programmers to use rewrite rules to optimize Haskell programs in the compilation pipeline. Currently, GHC does not check the confluence of the user-defined rewrite rules. If the rewrite rules are not confluent then the optimization using these rules may produce unexpected results. Therefore, checking the confluence of rewrite rules is important. We implement GSOL using the plugin mechanism of GHC. and provide three usages. We demonstrate confluence checking in the Arrow library.

著者関連情報
© 2022, 日本ソフトウェア科学会
前の記事 次の記事
feedback
Top