]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Prelude.scl
Allow effects mapFst and mapSnd
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Prelude.scl
index c175f95a30d01bd7a15c0c6e9d8d4fd1dc36ef1d..e92603becb8e4300db875532c2b87ba090b742e8 100644 (file)
@@ -1521,11 +1521,11 @@ snd :: (a,b) -> b
 snd (x,y) = y
 
 @inline
-mapFst :: (a -> b) -> (a,c) -> (b,c)
+mapFst :: (a -> <e> b) -> (a,c) -> <e> (b,c)
 mapFst f (x,y) = (f x, y)
 
 @inline
-mapSnd :: (a -> b) -> (c,a) -> (c,b)
+mapSnd :: (a -> <e> b) -> (c,a) -> <e> (c,b)
 mapSnd f (x,y) = (x, f y)
 
 instance (Ord a, Ord b) => Ord (a, b) where