Sha256: 1e9a47d03a5d38fb27eee474d8795a8e1846bf9b910a80d04c2fabe5d1d91260
Contents?: true
Size: 1.02 KB
Versions: 159
Compression:
Stored size: 1.02 KB
Contents
open Core open Yojson.Basic include Ocaml_special_cases include Purescript_special_cases type language_config = { template_file_name: string; default_base_folder: string; test_start_marker: string; test_end_marker: string; version_printer: string -> string; edit_parameters: slug: string -> (string * json) list -> (string * string) list; } let default_language_config = function | "ocaml" -> { template_file_name = "test.ml"; default_base_folder = "../.."; test_start_marker = "(* TEST"; test_end_marker = "END TEST"; version_printer = (fun v -> "(* Test/exercise version: \"" ^ v ^ "\" *)\n\n"); edit_parameters = ocaml_edit_parameters } | "purescript" -> { template_file_name = "Main.purs"; default_base_folder = "../../../xpurescript"; test_start_marker = "--TEST"; test_end_marker = "--END TEST"; version_printer = (fun v -> "-- Test/exercise version: \"" ^ v ^ "\"\n\n"); edit_parameters = purescript_edit_parameters } | x -> failwith @@ "unknown language " ^ x
Version data entries
159 entries across 159 versions & 1 rubygems