diff options
Diffstat (limited to 'Utils.hs')
| -rw-r--r-- | Utils.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,3 +16,7 @@ just err Nothing = error ("Missing: " ++ err) -- | Test for whether something listy has a suffix hasSuffix :: Eq a => [a] -> [a] -> Bool hasSuffix s = isJust . stripSuffix s + +-- | The same second as from arrows et al. +second :: (a -> b) -> (c, a) -> (c, b) +second f (a, b) = (a, f b) |
