What is an Erlang hrl file?

appshare.co picture appshare.co · Feb 22, 2010 · Viewed 10.3k times · Source

What is an .hrl file in Erlang/OTP? Is it some sort of library mechanism?

Answer

jldupont picture jldupont · Feb 22, 2010

A "header file" akin to a "C" include file.

One needs to invoke the -include directive from an .erl file to use them. Can contain any valid Erlang code.