[erlang-questions] typing anonymous functions

Joel Reymont <>
Sat Oct 15 17:50:22 CEST 2011


Note the absence of () after the type name. 

Foot in mouth!

On Oct 15, 2011, at 4:45 PM, Joel Reymont wrote:

> This fails too. Why?
> 
> -type pickler :: {fun((iolist(), term()) -> iolist()), fun((binary()) -> {term(), binary()})}.

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




More information about the erlang-questions mailing list