Skip to content

Commit c75ca9a

Browse files
bolt12coot
andcommitted
Update io-sim/src/Data/List/Trace.hs
Co-authored-by: Marcin Szamotulski <[email protected]>
1 parent 68f6770 commit c75ca9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

io-sim/src/Data/List/Trace.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ take n (Cons b o) = Cons b (take (n - 1) o)
7878

7979
-- | Take elements from the Trace while the predicate holds, converting each to ().
8080
takeWhile :: (b -> Bool) -> Trace a b -> Trace (Maybe a) b
81-
takeWhile _ (Nil a) = Nil (Just a)
81+
takeWhile _ (Nil a) = Nil (Just a)
8282
takeWhile p (Cons b o)
83-
| p b = Cons b (takeWhile p o)
84-
| otherwise = Nil Nothing
83+
| p b = Cons b (takeWhile p o)
84+
| otherwise = Nil Nothing
8585

8686
-- | Drop the first n elements of a Trace.
8787
drop :: Int -> Trace a b -> Trace a b

0 commit comments

Comments
 (0)