You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleqs;
open importStdlib.System.IO;
open importStdlib.Data.Nat;
open importStdlib.Data.Nat.Ord;
open importStdlib.Data.List;
main : IO;
main := putStrLn (natToStr (length (quickSort compare (zero ∷ nil))));
end;
results in
qs.c:359:12: warning: implicit declaration of function 'cmp_462' is invalid in C99 [-Wimplicit-function-declaration]
return cmp_462(env->ea0, fa1);
^
qs.c:359:12: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'Ordering_61_t *' (aka 'struct Ordering_61_s *') [-Wint-conversion]
return cmp_462(env->ea0, fa1);
^~~~~~~~~~~~~~~~~~~~~~
qs.c:784:127: error: too few arguments to function call, expected 3, have 2
proj_ca0_V_435(fa1))),
^
2 warnings and 1 error generated.
For now, I propose quickSort be removed from the standard library.
This is the last remaining issue that makes the tests fail after removing MonoJuvix. Earlier quickSort was not compiled unless used -- unused functions were recognised by having a polymorphic type and removed. After removing MonoJuvix, quickSort is compiled every time Stdlib.Data.List is imported.
The text was updated successfully, but these errors were encountered:
Compiling:
results in
For now, I propose quickSort be removed from the standard library.
This is the last remaining issue that makes the tests fail after removing MonoJuvix. Earlier quickSort was not compiled unless used -- unused functions were recognised by having a polymorphic type and removed. After removing MonoJuvix, quickSort is compiled every time Stdlib.Data.List is imported.
The text was updated successfully, but these errors were encountered: