From 2c634800d29786467d3d30d5ac340b6af27e1601 Mon Sep 17 00:00:00 2001 From: Sebastian Steger Date: Wed, 20 Aug 2025 15:03:30 +0200 Subject: [PATCH] Control Structures --- haskell/01-expressions/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/haskell/01-expressions/README.md b/haskell/01-expressions/README.md index be76606..1d6bc21 100644 --- a/haskell/01-expressions/README.md +++ b/haskell/01-expressions/README.md @@ -72,4 +72,10 @@ Expression | Type (:t) | Value | Comment ## Control Structures +Expression | Type (:t) | Value | Comment +--- | --- | --- | -------- +`if 10/2==5 then "five" else "something else"` | `String` | `"five"` | +`case 1 of { 1 -> "small"; 2 -> "medium"; _ -> "large"}` | `String` | `"small"` | patterns are overlapping +`(let x = 5*2 in (x * 2,x /2))` | `(Fractional b, Num a) => (a, b)` | `(20,5.0)` | + ## Lists \ No newline at end of file