Update MagicFocus to the new StackSet

This commit is contained in:
Spencer Janssen
2007-06-13 03:53:23 +00:00
parent d6dec18856
commit 0a0609bd15

View File

@@ -7,5 +7,4 @@ magicFocus l = l { doLayout = \s -> (doLayout l) s . swap
, modifyLayout = \x -> fmap magicFocus `fmap` modifyLayout l x }
swap :: Stack a -> Stack a
swap Empty = Empty
swap (Node f u d) = Node f [] (reverse u ++ d)
swap (Stack f u d) = Stack f [] (reverse u ++ d)