Skip to content

Commit

Permalink
Fix build wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-k committed Nov 11, 2023
1 parent d794691 commit 1f71d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mig-tools/src/Mig/Tool/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ instance Functor React where
filterReact :: (a -> Bool) -> React a -> React a
filterReact f (React a) = React (a . filterSet f)

{- todo
accumReact :: (b -> a -> b) -> b -> React a -> React b
accumReact go initVal (React x) = React $ \call -> do
ref <- newIORef initVal
call
-}

instance Semigroup (React a) where
(<>) (React a) (React b) = React $ \f -> do
Expand Down

0 comments on commit 1f71d0a

Please sign in to comment.