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

Use lens

parent dcf21858
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,7 @@ hasEventHandler (Just (_, Just _)) = True
hasEventHandler _ = False
invalidateBlockState :: BlockState -> BlockState
invalidateBlockState Nothing = Nothing
invalidateBlockState (Just (output, eventHandler)) = Just (invalidateBlock output, eventHandler)
invalidateBlockState = (_Just . _1) %~ invalidateBlock
runBarIO :: MonadIO m => Bar -> BarIO r -> m r
......
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