Skip to content

Instantly share code, notes, and snippets.

View medson10's full-sized avatar

Medson Oliveira medson10

View GitHub Profile
module type Config = {
type field('a);
type state;
let set: (state, field('a), 'a) => state;
let get: (state, field('a)) => 'a;
};
/* This is the abstraction, the user won't know about it */
module Make = (Config: Config) => {
type field =
| Field(Config.field('a)): field;

Keybase proof

I hereby claim:

  • I am medson10 on github.
  • I am medson10 (https://keybase.io/medson10) on keybase.
  • I have a public key ASAZnuzJkod7un_w_Xu7Qt7aBc6B_WpwJ_wgdpzqA9J0fgo

To claim this, I am signing this object:

Backup Atom Settings