From d8509f78424a4942bc66ffb4e29684c02f99c281 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 5 May 2015 19:35:11 -0500 Subject: fix types for pre-17 releases --- src/rebar_mustache.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rebar_mustache.erl') diff --git a/src/rebar_mustache.erl b/src/rebar_mustache.erl index 375a591..eb82785 100644 --- a/src/rebar_mustache.erl +++ b/src/rebar_mustache.erl @@ -62,7 +62,11 @@ -opaque template() :: #?MODULE{}. %% @see parse_binary/1 %% @see parse_file/1 +-ifdef(namespaced_types). -type data() :: #{string() => data() | iodata() | fun((data(), function()) -> iodata())}. +-else. +-type data() :: dict(). +-endif. %% @see render/2 %% @see compile/2 -type partial() :: {partial, {state(), EndTag :: binary(), LastTagSize :: non_neg_integer(), Rest :: binary(), [tag()]}}. -- cgit v1.1