Skip to content
Snippets Groups Projects
Commit c232bde3 authored by Jens Nolte's avatar Jens Nolte
Browse files

Move dup to PreludeExtras

parent e3bad2f0
No related branches found
No related tags found
No related merge requests found
...@@ -267,8 +267,6 @@ instance forall o0 v0 o1 v1 r. (Observable v0 o0, Observable v1 o1) => Observabl ...@@ -267,8 +267,6 @@ instance forall o0 v0 o1 v1 r. (Observable v0 o0, Observable v1 o1) => Observabl
updateTuple :: Either v0 v1 -> (Maybe v0, Maybe v1) -> (Maybe v0, Maybe v1) updateTuple :: Either v0 v1 -> (Maybe v0, Maybe v1) -> (Maybe v0, Maybe v1)
updateTuple (Left l) (_, r) = (Just l, r) updateTuple (Left l) (_, r) = (Just l, r)
updateTuple (Right r) (l, _) = (l, Just r) updateTuple (Right r) (l, _) = (l, Just r)
dup :: a -> (a, a)
dup x = (x, x)
-- | Merge two observables using a given merge function. Whenever the value of one of the inputs changes, the resulting observable updates according to the merge function. -- | Merge two observables using a given merge function. Whenever the value of one of the inputs changes, the resulting observable updates according to the merge function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment