From 8e6c81fe5a00c605440a5707d2eb686485f24b5a Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 7 Nov 2012 15:31:45 +0000 Subject: Some changed/new utility functions GF.Data.Utilities: Rename mapFst to apFst, mapSnd to apSnd. Add apBoth, mapFst, mapSnd, mapBoth. GF.Data.Operations: Remove onSnd (same as apSnd) --- src/compiler/GF/Data/Operations.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/compiler/GF/Data/Operations.hs') diff --git a/src/compiler/GF/Data/Operations.hs b/src/compiler/GF/Data/Operations.hs index 781f0a133..366f5a669 100644 --- a/src/compiler/GF/Data/Operations.hs +++ b/src/compiler/GF/Data/Operations.hs @@ -15,7 +15,7 @@ ----------------------------------------------------------------------------- module GF.Data.Operations (-- * misc functions - ifNull, onSnd, + ifNull, -- * the Error monad Err(..), err, maybeErr, testErr, errVal, errIn, @@ -76,9 +76,6 @@ infixr 5 +++++ ifNull :: b -> ([a] -> b) -> [a] -> b ifNull b f xs = if null xs then b else f xs -onSnd :: (a -> b) -> (c,a) -> (c,b) -onSnd f (x, y) = (x, f y) - -- the Error monad -- | analogue of @maybe@ -- cgit v1.2.3