Skip to content

Commit

Permalink
fix: Process Maybe in TraverseAst correctly.
Browse files Browse the repository at this point in the history
We were skipping all the var-decl-initialisers. Luckily no new things
were found in toxcore after this fix.
  • Loading branch information
iphydf committed Mar 14, 2022
1 parent d4d5bdc commit adbd8ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Language/Cimple/TraverseAst.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ data AstActions f text = AstActions

instance TraverseAst text a
=> TraverseAst text (Maybe a) where
traverseFileAst _ _ _ = pure ()
traverseFileAst _ _ Nothing = pure ()
traverseFileAst actions currentFile (Just x) =
traverseFileAst actions currentFile x

astActions
:: Applicative f
Expand Down

0 comments on commit adbd8ec

Please sign in to comment.