ref: 8deeb4ac75d8ed8cf423a30474b5958957748d36
parent: e8cdf93f4e5369d37e82d3efd11385448ffa19c1
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Thu Feb 15 13:46:57 EST 2024
Add a Show instance
--- a/src/MicroHs/Expr.hs
+++ b/src/MicroHs/Expr.hs
@@ -531,6 +531,9 @@
instance Show Eqn where
show eqn = render $ ppEqns (text "_") (text "=") [eqn]
+instance Show EDef where
+ show d = showEDefs [d]
+
showExpr :: Expr -> String
showExpr = render . ppExpr
--
⑨