Use right start category names in si command.

This commit is contained in:
bringert
2006-01-20 18:20:02 +00:00
parent 0f6c51f741
commit 92f22c8f5c
5 changed files with 6 additions and 6 deletions

View File

@@ -81,8 +81,8 @@ unionAll = nub . concat
-- | Like 'lookup', but fails if the argument is not found,
-- instead of returning Nothing.
lookup' :: Eq a => a -> [(a,b)] -> b
lookup' x = fromJust . lookup x
lookup' :: (Show a, Eq a) => a -> [(a,b)] -> b
lookup' x = fromMaybe (error $ "Not found: " ++ show x) . lookup x
-- | Like 'find', but fails if nothing is found.
find' :: (a -> Bool) -> [a] -> a