Skip to content

Instantly share code, notes, and snippets.

@kjnilsson
Last active March 21, 2018 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjnilsson/1a24de73a79874e08422ba11f71dc3d6 to your computer and use it in GitHub Desktop.
Save kjnilsson/1a24de73a79874e08422ba11f71dc3d6 to your computer and use it in GitHub Desktop.
module sigs for otp
module type GenServerType =
type State
val init : ErlangTerm list -> State
...
module MyGenServer : GenServerType =
type State = {Name : string}
let init args =
{Name = "test"}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment