Elm Exactly

Rule 114dm-header

HeadersI⊢header⇒(modid,I′)\jdg{I}{\header}{(\modid,I')}
I⊢explist⇒I′I⊢⟨port⟩ module modid exposing explist⇒(modid,I′)\frac{\begin{array}{c}\jdg{I}{\explist}{I'}\end{array}}{\begin{array}{c}\jdg{I}{\opt{\kw{port}}\ \kw{module}\ \modid\ \kw{exposing}\ \explist}{(\modid,I')}\end{array}}
(114)
Read it in its chapter·Permanent address: /standard/rules/dm-header

Comments

The word port has no dynamic content: a port module and a plain module evaluate alike.

TeX source
\defnrule[r:dm-header]
  {\jdg{I}{\explist}{I'}}
  {\jdg{I}{\opt{\kw{port}}\ \kw{module}\ \modid\ \kw{exposing}\ \explist}{(\modid,I')}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:dm-header] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.