Computer Software
Print ISSN : 0289-6540
GSOL: A Confluence Checker for Haskell Rewrite Rules
Yao Faustin DATEMakoto HAMANA
Author information
JOURNAL FREE ACCESS

2022 Volume 39 Issue 3 Pages 3_82-3_87

Details
Abstract

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.

Content from these authors
© 2022, Japan Society for Software Science and Technology
Previous article Next article
feedback
Top