File tree 6 files changed +26
-14
lines changed 6 files changed +26
-14
lines changed Original file line number Diff line number Diff line change
1
+ package "test_lib" (
2
+ directory = "test_lib"
3
+ version = "0.13.2"
4
+ description = "Learn-ocaml dependencies for automatic graders"
5
+ requires = "compiler-libs"
6
+ )
Original file line number Diff line number Diff line change 168
168
)
169
169
170
170
;; cmis that are needed to precompile the graders for exercises
171
- ;; FIXME: now we install the libs through dune, so use that ??
172
171
(install
173
- (section share )
172
+ (section lib )
174
173
(package learn-ocaml)
175
174
(files
176
- (../ppx-metaquot/.ty.objs/byte/ty.cmi as grading_cmis /ty.cmi)
177
- (../ppx-metaquot/.fun_ty.objs/byte/fun_ty.cmi as grading_cmis /fun_ty.cmi)
178
- ;; (.exercise_init.objs/byte/exercise_init.cmi as grading_cmis /exercise_init.cmi)
179
- (.introspection_intf.objs/byte/introspection_intf.cmi as grading_cmis /introspection_intf.cmi)
180
- (.pre_test.objs/byte/learnocaml_internal.cmi as grading_cmis /learnocaml_internal.cmi)
181
- (.pre_test.objs/byte/pre_test.cmi as grading_cmis /pre_test.cmi)
182
- (.learnocaml_report.objs/byte/learnocaml_report.cmi as grading_cmis /learnocaml_report.cmi)
183
- (.pre_test.objs/byte/learnocaml_callback.cmi as grading_cmis /learnocaml_callback.cmi) ;;FIXME separate lib??
184
- (.testing_dyn.objs/byte/test_lib.cmi as grading_cmis /test_lib.cmi))
175
+ (../ppx-metaquot/.ty.objs/byte/ty.cmi as test_lib /ty.cmi)
176
+ (../ppx-metaquot/.fun_ty.objs/byte/fun_ty.cmi as test_lib /fun_ty.cmi)
177
+ ;; (.exercise_init.objs/byte/exercise_init.cmi as test_lib /exercise_init.cmi)
178
+ (.introspection_intf.objs/byte/introspection_intf.cmi as test_lib /introspection_intf.cmi)
179
+ (.pre_test.objs/byte/learnocaml_internal.cmi as test_lib /learnocaml_internal.cmi)
180
+ (.pre_test.objs/byte/pre_test.cmi as test_lib /pre_test.cmi)
181
+ (.learnocaml_report.objs/byte/learnocaml_report.cmi as test_lib /learnocaml_report.cmi)
182
+ (.pre_test.objs/byte/learnocaml_callback.cmi as test_lib /learnocaml_callback.cmi) ;;FIXME separate lib??
183
+ (.testing_dyn.objs/byte/test_lib.cmi as test_lib /test_lib.cmi))
185
184
)
186
185
187
186
Original file line number Diff line number Diff line change
1
+ (* This interface is used to pre-compile modules for the toplevel, giving them
2
+ access to specific toplevel functions. It should not be made accessible to
3
+ the non-precompiled code running in the toplevel *)
4
+ include Learnocaml_internal_intf. S
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ open Lwt.Infix
6
6
let grading_cmis_dir, grading_ppx_dir =
7
7
let prefix = Filename. dirname (Filename. dirname (Sys. executable_name)) in
8
8
let ( / ) = Filename. concat in
9
- ref (prefix/ " share " / " learn-ocaml" / " grading_cmis " ),
9
+ ref (prefix/ " lib " / " learn-ocaml" / " test_lib " ),
10
10
ref (prefix/ " lib" / " learn-ocaml" / " grading_ppx" )
11
11
12
12
let run ?dir cmd args =
@@ -91,7 +91,7 @@ let precompile ~exercise_dir =
91
91
~source: [" test.ml" ]
92
92
~target: " test.cmo"
93
93
>> = fun () ->
94
- ocamlc ~dir [" -a" ]
94
+ ocamlc ~dir ( [" -a" ] @ grader_flags)
95
95
~source: [" test.cmo" ]
96
96
~target: " test.cma"
97
97
>> = fun () ->
Original file line number Diff line number Diff line change 10
10
11
11
(library
12
12
(name learnocaml_internal_intf)
13
- (public_name learn-ocaml.learnocaml_internal_intf)
14
13
(wrapped false)
15
14
(modules learnocaml_internal_intf)
16
15
(modules_without_implementation learnocaml_internal_intf)
Original file line number Diff line number Diff line change
1
+ (* (hidden) interface of the module that will be pre-loaded in the toplevel *)
2
+ module type S = sig
3
+ val register_printer : string -> ('a -> 'b ) -> unit
4
+ end
You can’t perform that action at this time.
0 commit comments