Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FUNCT some shitty specs for call history

We definitely need an ADT for this
  • Loading branch information...
commit ed755006a01880327dd19168fdaad1779e11d6e6 1 parent 0c38e52
@samuelrivas authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/moka.erl
View
4 src/moka.erl
@@ -49,8 +49,10 @@
-opaque moka() :: atom().
--type history_entry() :: {funct_spec(), Args::[any()], Return::any()}.
+-type history_entry() :: {funct_spec(), Args::[any()], Result::result()}.
+-type result() :: Return::any() | {exception, class(), Reason::any()}.
-type funct_spec() :: {Module::module(), FunctionName::atom()}.
+-type class() :: throw | exit | error.
-type history() :: [history_entry()].
%% History entries are sorted chronologically, oldest first
Please sign in to comment.
Something went wrong with that request. Please try again.