shithub: MicroHs

Download patch

ref: e0acb2369bdc8f7accfbb268ea016e3f0d707b0b
parent: 38c2b0e6baebc43b2421bce9513599ec1ad3b84a
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Mon Nov 13 08:27:25 EST 2023

instance Show Handle

--- a/lib/System/IO.hs
+++ b/lib/System/IO.hs
@@ -52,6 +52,9 @@
 instance Eq Handle where
   Handle p == Handle q  =  p == q
 
+instance Show Handle where
+  show (Handle p) = "Handle-" ++ show p
+
 nullHandle :: Handle
 nullHandle = Handle nullPtr
 
--