Skip to content

Commit 3cedfc9

Browse files
committed
mosml compatibility patch (same names sig/sml/files)
1 parent 234e03a commit 3cedfc9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

MYLIST_SORT.sig renamed to ListSort.sig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(** List sort operations. *)
2-
signature MYLIST_SORT =
2+
signature ListSort =
33
sig
44
val sort : ('a * 'a -> order) -> 'a list -> 'a list
55
val sorted : ('a * 'a -> order) -> 'a list -> bool

MyListSort.sml renamed to ListSort.sml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
structure MyListSort :> MYLIST_SORT =
1+
structure ListSort :> ListSort =
22
struct
33
fun sort ordr xs =
44
let

multicontracts.sml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
structure Listsort = MyListSort
2-
31
structure multicontracts = struct
42

53
exception Error of string
@@ -238,7 +236,7 @@ structure Contract = struct
238236
else []
239237
| NONE => flows sw s d false t' (* obs is uncertain *)
240238
val res = flows (fn x => x) 1.0 (today()) true t
241-
in Listsort.sort
239+
in ListSort.sort
242240
(fn (r1,r2) => Date.compare(#1 r1,#1 r2))
243241
res
244242
end

0 commit comments

Comments
 (0)