.hs
. Each module should start with the name of the module which is also the same name of the corresponding file, e.g. module Triple.hs
:Triple
, followed by the module interface wrapped in parentheses. The module interface states what gets exported from this module, i.e. if this module is imported somewhere else, thetriple
function is the only thing that would be usable from this module. If we had another function declared in the module contents (e.g. quadruple
), that function would not be exported unless specified in the module interface.--
, and multi-line comments are wrapped between {- -}
. Any comments in this guide will also follow the same format.