Skip to content

Commit

Permalink
Merge branch 'develop-simplify-isJustEdge' into develop. Close #286.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed Feb 9, 2024
2 parents d8fa729 + e7584df commit fc47e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions yampa/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2024-02-09 Ivan Perez <ivan.perez@keera.co.uk>
* 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).

2023-12-07 Ivan Perez <ivan.perez@keera.co.uk>
* Version bump (0.14.6) (#282).
Expand Down
4 changes: 1 addition & 3 deletions yampa/src/FRP/Yampa/EventS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,8 @@ edgeTag a = edge >>> arr (`tag` a)
edgeJust :: SF (Maybe a) (Event a)
edgeJust = edgeBy isJustEdge (Just undefined)
where
isJustEdge Nothing Nothing = Nothing
isJustEdge Nothing ma@(Just _) = ma
isJustEdge (Just _) (Just _) = Nothing
isJustEdge (Just _) Nothing = Nothing
isJustEdge _ _ = Nothing

-- | Edge detector parameterized on the edge detection function and initial
-- state, i.e., the previous input sample. The first argument to the edge
Expand Down

0 comments on commit fc47e03

Please sign in to comment.