The @inline decorator tells the compiler to inline its value in every place the binding is being used, rather than use a variable.
@inline
module Colors = { @inline let green = "green" @inline let red = "red" } let allowedColors = [Colors.green, Colors.red]
Inlining Constants