shithub: MicroHs

Download patch

ref: 0dae71b0c16a33956c4faee318dac7abef303de0
parent: 74a051e7af311cda205f4558adf15f9be3159907
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Wed Jan 10 07:58:31 EST 2024

Add Functor instance

--- a/lib/Data/Proxy.hs
+++ b/lib/Data/Proxy.hs
@@ -2,6 +2,7 @@
 import Primitives
 import Data.Bool_Type
 import Data.Eq
+import Data.Functor
 import Text.Show
 
 type Proxy :: forall (k::Kind) . k -> Type
@@ -12,3 +13,6 @@
 
 instance forall a . Eq (Proxy a) where
   _ == _  =  True
+
+instance Functor Proxy where
+  fmap _ Proxy = Proxy
--