Skip to content

Instantly share code, notes, and snippets.

@Octachron
Created May 18, 2018 14:31
let f [%pattern]: [%type_expression] = [%expression]
module type s = [%module_type]
module M = struct
[%%structure_item]
include [%module_expression]
end
module type S = sig [%%signature_item] end
class c: int -> [%class_type] = fun x -> [%class_expression]
class c: object [%%class_type_field] end = object [%%class_field] end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment