1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00

Update standard library list functions to use traits (#2382)

Co-authored-by: Paul Cadman <git@paulcadman.dev>
This commit is contained in:
Łukasz Czajka 2023-09-25 13:30:25 +02:00 committed by GitHub
parent ea1fe1af3d
commit e67f2ec134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ sort : {A : Type} → (A → A → Ordering) → List A → List A
| _ xs@(_ :: nil) := xs
| {A} cmp xs :=
uncurry
(merge (mkOrd cmp))
(merge {{mkOrd cmp}})
(both (sort cmp) (splitAt (div (length xs) 2) xs));
printNatListLn : List Nat → IO

@ -1 +1 @@
Subproject commit 4facf14d9b2d06b81ce1be1882aa9050f768cb45
Subproject commit 2680b19844616821d4ce77a40e9f02fb2e6c1995

View File

@ -143,7 +143,7 @@ lookupInstance tab ty = do
Just InstanceApp {..} ->
lookupInstance' True tab _instanceAppHead _instanceAppArgs
_ ->
throw (ErrNotATrait (NotATrait ty))
return []
subsumingInstances ::
forall r.