Skip to content

Commit

Permalink
Merge branch 'develop-simplify-isEdge' into develop. Close #287.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed Feb 9, 2024
2 parents fc47e03 + f76f9d0 commit 877746d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions yampa/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Remove postgresql repo before installation in CI script (#284).
* Simplify definition of FRP.Yampa.Event.joinE (#285).
* Simplify definition of FRP.Yampa.EventS.isJustEdge (#286).
* Simplify definition of FRP.Yampa.Task.isEdge (#287).

2023-12-07 Ivan Perez <ivan.perez@keera.co.uk>
* Version bump (0.14.6) (#282).
Expand Down
6 changes: 2 additions & 4 deletions yampa/src/FRP/Yampa/Task.hs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ taskToSF tk = runTask tk
"Task terminated!"))
&&& edgeBy isEdge (Left undefined))
where
isEdge (Left _) (Left _) = Nothing
isEdge (Left _) (Right c) = Just c
isEdge (Right _) (Right _) = Nothing
isEdge (Right _) (Left _) = Nothing
isEdge (Left _) (Right c) = Just c
isEdge _ _ = Nothing

-- * Functor, Applicative and Monad instance

Expand Down

0 comments on commit 877746d

Please sign in to comment.