Browse files

Merge pull request #7 from voluntas/master

Export opt() and opts() type.
  • Loading branch information...
2 parents a75bae3 + 107d3eb commit 15d836010e3f1cb18f79637ae428cb47b8b02165 @aerosol aerosol committed Jul 2, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 rebar.config
  3. +2 −0 src/binpp.erl
View
1 .gitignore
@@ -4,3 +4,4 @@ deps
priv
*.o
*.beam
+rebar
View
2 rebar.config
@@ -1,3 +1,5 @@
+{erl_opts, [warnings_as_errors]}.
+
{cover_enabled, true}.
{cover_print_enabled, true}.
{eunit_opts, [verbose,
View
2 src/binpp.erl
@@ -22,6 +22,8 @@
-export([from_str/1]).
-export([convert/1, convert/2]).
+-export_type([opt/0, opts/0]).
+
-opaque opt() :: {return, iolist} | {return, binary} | {printer, function()}.
-opaque opts() :: list(opt()).

0 comments on commit 15d8360

Please sign in to comment.