We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f6770 commit c75ca9aCopy full SHA for c75ca9a
io-sim/src/Data/List/Trace.hs
@@ -78,10 +78,10 @@ take n (Cons b o) = Cons b (take (n - 1) o)
78
79
-- | Take elements from the Trace while the predicate holds, converting each to ().
80
takeWhile :: (b -> Bool) -> Trace a b -> Trace (Maybe a) b
81
-takeWhile _ (Nil a) = Nil (Just a)
+takeWhile _ (Nil a) = Nil (Just a)
82
takeWhile p (Cons b o)
83
- | p b = Cons b (takeWhile p o)
84
- | otherwise = Nil Nothing
+ | p b = Cons b (takeWhile p o)
+ | otherwise = Nil Nothing
85
86
-- | Drop the first n elements of a Trace.
87
drop :: Int -> Trace a b -> Trace a b
0 commit comments