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:
parent
ea1fe1af3d
commit
e67f2ec134
@ -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
|
@ -143,7 +143,7 @@ lookupInstance tab ty = do
|
||||
Just InstanceApp {..} ->
|
||||
lookupInstance' True tab _instanceAppHead _instanceAppArgs
|
||||
_ ->
|
||||
throw (ErrNotATrait (NotATrait ty))
|
||||
return []
|
||||
|
||||
subsumingInstances ::
|
||||
forall r.
|
||||
|
Loading…
Reference in New Issue
Block a user