Skip to content

Instantly share code, notes, and snippets.

@Octachron
Created May 18, 2018 14:31
Show Gist options
  • Save Octachron/099cb0d6693faa0921e25ac2e920ab37 to your computer and use it in GitHub Desktop.
Save Octachron/099cb0d6693faa0921e25ac2e920ab37 to your computer and use it in GitHub Desktop.
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