[erlang-questions] erl_tidy: Preserve spec attribute.

Tom McNulty tom.mcnulty@REDACTED
Thu Apr 30 20:48:18 CEST 2009


Hello,

I've been using erl_tidy over all my code lately and have been very  
happy with the output it produces.

Ran into this problem though:

-spec add2(number()) -> number().
add2(Val) -> Val + 2.

turns into

-'spec'({{add2, 1},
	 [{type, 6, 'fun',
	   [{type, 6, product, [{type, 6, number, []}]},
	    {type, 6, number, []}]}]}).

add2(Val) -> Val + 2.


Ugh!. Is there any work around for this?

I'm using R13B.


Thanks,

- Tom




More information about the erlang-questions mailing list