Skip to content

Commit

Permalink
Update src/Juvix/Compiler/Internal/Translation/FromInternal/Analysis/…
Browse files Browse the repository at this point in the history
…Positivity/Checker.hs

Co-authored-by: Jan Mas Rovira <[email protected]>
  • Loading branch information
jonaprieto and janmasrovira authored Nov 30, 2023
1 parent c80e5bb commit 3e7c303
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ checkPositivity ty = do
forM_ (ty ^. inductiveConstructors) $ \ctor -> do
unless (ty ^. inductivePositive) $ do
numInductives <- HashMap.size <$> asks (^. infoInductives)
mapM_
( \typeOfConstr ->
forM_
(constructorArgs (ctor ^. inductiveConstructorType))
$ \typeOfConstr ->
checkStrictlyPositiveOccurrences
( CheckPositivityArgs
{ _checkPositivityArgsInductive = ty,
Expand All @@ -56,8 +57,6 @@ checkPositivity ty = do
_checkPositivityArgsTypeOfConstructor = typeOfConstr
}
)
)
(constructorArgs (ctor ^. inductiveConstructorType))

checkStrictlyPositiveOccurrences ::
forall r.
Expand Down

0 comments on commit 3e7c303

Please sign in to comment.