-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ base ] Deprecate
toList
functions for sorted sets and maps
For sorted maps a `kvList` should be used instead, for sorted sets use `toList` from `prelude`.
- Loading branch information
Showing
7 changed files
with
61 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
1/1: Building inferror (inferror.idr) | ||
Error: While processing right hand side of g. Ambiguous elaboration. Possible results: | ||
Data.SortedMap.toList m | ||
Main.toList m | ||
Prelude.toList m | ||
|
||
inferror:9:17--9:23 | ||
5 | f m = case sortBy (\(x, _), (y, _) => compare x y) (SortedMap.toList m) of | ||
6 | as => as | ||
7 | | ||
8 | g : Ord k => SortedMap k v -> List (k, v) | ||
9 | g m = let kvs = toList m in | ||
^^^^^^ | ||
inferror:14:17--14:23 | ||
10 | f m = case sortBy (\(x, _), (y, _) => compare x y) (Main.toList m) of | ||
11 | as => as | ||
12 | | ||
13 | g : Ord k => SortedMap k v -> List (k, v) | ||
14 | g m = let kvs = toList m in | ||
^^^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters