Guest User

Untitled

a guest
Oct 17th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. kmels@kmels-stelle:~/code/ocaml/proglangUtils$ make
  2. ocamlbuild -j 2 proglangUtils.cma
  3. Finished, 0 targets (0 cached) in 00:00:00.
  4. + ocamlfind ocamlc -c -o extSMap.cmo extSMap.ml
  5. File "extSMap.ml", line 1, characters 0-1:
  6. Error: The implementation extSMap.ml
  7. does not match the interface extSMap.cmi:
  8. Module type declarations do not match:
  9. module type S =
  10. sig
  11. type key
  12. type +'a t
  13. val empty : 'a t
  14. val is_empty : 'a t -> bool
  15. val add : key -> 'a -> 'a t -> 'a t
  16. val find : key -> 'a t -> 'a
  17. val remove : key -> 'a t -> 'a t
  18. val mem : key -> 'a t -> bool
  19. val iter : (key -> 'a -> unit) -> 'a t -> unit
  20. val map : ('a -> 'b) -> 'a t -> 'b t
  21. val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
  22. val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
  23. val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
  24. val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
  25. val string_of : ('a -> string) -> 'a t -> string
  26. end
  27. does not match
  28. module type S =
  29. sig
  30. type key
  31. type +'a t
  32. val empty : 'a t
  33. val is_empty : 'a t -> bool
  34. val mem : key -> 'a t -> bool
  35. val add : key -> 'a -> 'a t -> 'a t
  36. val singleton : key -> 'a -> 'a t
  37. val remove : key -> 'a t -> 'a t
  38. val merge :
  39. (key -> 'a option -> 'b option -> 'c option) ->
  40. 'a t -> 'b t -> 'c t
  41. val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
  42. val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
  43. val iter : (key -> 'a -> unit) -> 'a t -> unit
  44. val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
  45. val for_all : (key -> 'a -> bool) -> 'a t -> bool
  46. val exists : (key -> 'a -> bool) -> 'a t -> bool
  47. val filter : (key -> 'a -> bool) -> 'a t -> 'a t
  48. val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t
  49. val cardinal : 'a t -> int
  50. val bindings : 'a t -> (key * 'a) list
  51. val min_binding : 'a t -> key * 'a
  52. val max_binding : 'a t -> key * 'a
  53. val choose : 'a t -> key * 'a
  54. val split : key -> 'a t -> 'a t * 'a option * 'a t
  55. val find : key -> 'a t -> 'a
  56. val map : ('a -> 'b) -> 'a t -> 'b t
  57. val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
  58. val string_of : ('a -> string) -> 'a t -> string
  59. end
  60. Modules do not match:
  61. sig
  62. type key
  63. type +'a t
  64. val empty : 'a t
  65. val is_empty : 'a t -> bool
  66. val add : key -> 'a -> 'a t -> 'a t
  67. val find : key -> 'a t -> 'a
  68. val remove : key -> 'a t -> 'a t
  69. val mem : key -> 'a t -> bool
  70. val iter : (key -> 'a -> unit) -> 'a t -> unit
  71. val map : ('a -> 'b) -> 'a t -> 'b t
  72. val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
  73. val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
  74. val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
  75. val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
  76. val string_of : ('a -> string) -> 'a t -> string
  77. end
  78. is not included in
  79. sig
  80. type key
  81. type +'a t
  82. val empty : 'a t
  83. val is_empty : 'a t -> bool
  84. val mem : key -> 'a t -> bool
  85. val add : key -> 'a -> 'a t -> 'a t
  86. val singleton : key -> 'a -> 'a t
  87. val remove : key -> 'a t -> 'a t
  88. val merge :
  89. (key -> 'a option -> 'b option -> 'c option) ->
  90. 'a t -> 'b t -> 'c t
  91. val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
  92. val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
  93. val iter : (key -> 'a -> unit) -> 'a t -> unit
  94. val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
  95. val for_all : (key -> 'a -> bool) -> 'a t -> bool
  96. val exists : (key -> 'a -> bool) -> 'a t -> bool
  97. val filter : (key -> 'a -> bool) -> 'a t -> 'a t
  98. val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t
  99. val cardinal : 'a t -> int
  100. val bindings : 'a t -> (key * 'a) list
  101. val min_binding : 'a t -> key * 'a
  102. val max_binding : 'a t -> key * 'a
  103. val choose : 'a t -> key * 'a
  104. val split : key -> 'a t -> 'a t * 'a option * 'a t
  105. val find : key -> 'a t -> 'a
  106. val map : ('a -> 'b) -> 'a t -> 'b t
  107. val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
  108. val string_of : ('a -> string) -> 'a t -> string
  109. end
  110. The field `split' is required but not provided
  111. The field `choose' is required but not provided
  112. The field `max_binding' is required but not provided
  113. The field `min_binding' is required but not provided
  114. The field `bindings' is required but not provided
  115. The field `cardinal' is required but not provided
  116. The field `partition' is required but not provided
  117. The field `filter' is required but not provided
  118. The field `exists' is required but not provided
  119. The field `for_all' is required but not provided
  120. The field `merge' is required but not provided
  121. The field `singleton' is required but not provided
  122. Command exited with code 2.
  123. make: *** [byte] Error 10
Advertisement
Add Comment
Please, Sign In to add comment