Skip to content

Commit

Permalink
fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz authored and paulcadman committed Nov 22, 2024
1 parent 5578a49 commit 5e4c18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Concrete/Translation/FromSource.hs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ derivingInstance = do
_derivingFunLhs <- functionDefinitionLhs opts Nothing
unless (isJust (_derivingFunLhs ^. funLhsInstance)) $
parseFailure off "Expected `deriving instance`"
unless (isJust (_derivingFunLhs ^. funLhsPattern)) $
unless (isNothing (_derivingFunLhs ^. funLhsPattern)) $
parseFailure off "Patterns not allowed for `deriving instance`"
return Deriving {..}

Expand Down

0 comments on commit 5e4c18f

Please sign in to comment.