From 649dfb57a92e579859fb2d85f85ba961333fdd17 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Tue, 7 Aug 2007 16:43:46 +0200 Subject: Remove 'Eq' constraint from StackSet.index darcs-hash:20070807144346-a5988-d01d24a1edb7af29e729ef4f5529b4cf6e9fc721 --- StackSet.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StackSet.hs b/StackSet.hs index d902b39..40d1c0b 100644 --- a/StackSet.hs +++ b/StackSet.hs @@ -320,7 +320,7 @@ filter p (Stack f ls rs) = case L.filter p (f:rs) of -- the head of the list. The implementation is given by the natural -- integration of a one-hole list cursor, back to a list. -- -index :: Eq a => StackSet i a s sd -> [a] +index :: StackSet i a s sd -> [a] index = with [] integrate -- let is = t : r ++ reverse l in take (length is) (dropWhile (/= m) (cycle is)) -- cgit v1.2.3