From 99c0abb1a17f17298ad8e78bc94b12b2b16ef8ac Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Wed, 6 Mar 2024 13:29:30 +0000 Subject: Document case for custom types --- src/content/chapter3_data_types/lesson01_custom_types/en.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/content/chapter3_data_types/lesson01_custom_types/en.html b/src/content/chapter3_data_types/lesson01_custom_types/en.html index 3a95f9f..34e51f2 100644 --- a/src/content/chapter3_data_types/lesson01_custom_types/en.html +++ b/src/content/chapter3_data_types/lesson01_custom_types/en.html @@ -4,6 +4,7 @@

A custom type is defined with the type keyword followed by the - name of the type and a constructor for each variant of the type. + name of the type and a constructor for each variant of the type. Both + the type name and the names of the constructors start with uppercase letters.

Custom type variants can be pattern matched on using a case expression.

-- cgit v1.2.3