We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c086bb7 commit 829cee8Copy full SHA for 829cee8
src/Deriving/DepTyCheck/Util/Reflection.idr
@@ -858,7 +858,7 @@ getConsRecs = do
858
859
let wClauses = cons <&> \(con ** e) => do
860
let wArgs = either (const empty) (fromMaybe empty . snd) e
861
- let lhsArgs : List (_, _) = mapI con.args $ \idx, arg => appArg arg <$> if contains idx wArgs
+ let lhsArgs : List (_, _) = mapI con.args $ \idx, arg => appArg arg <$> if contains idx wArgs && arg.count == MW
862
then let bindName = "arg^\{show idx}" in (Just bindName, bindVar bindName)
863
else (Nothing, implicitTrue)
864
let callSelfOn : Name -> TTImp
0 commit comments