From 74a83c2704a21af7c4733a4dbed4d01705bf651b Mon Sep 17 00:00:00 2001 From: Dmitrii Kovanikov Date: Wed, 30 Sep 2020 16:58:31 +0100 Subject: [PATCH] Fix (#22) --- src/Chapter1.hs | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/Chapter1.hs b/src/Chapter1.hs index c21914c7..618580ab 100644 --- a/src/Chapter1.hs +++ b/src/Chapter1.hs @@ -204,21 +204,31 @@ So, the output in this example means that 'False' has type 'Bool'. > Try to guess first and then compare your expectations with GHCi output >>> :t True -INSERT THE RESULT INSTEAD OF THE TEXT + >>> :t 'a' - + >>> :t 42 + ->>> :t (True, 'x') -- a pair of boolean and char +A pair of boolean and char: +>>> :t (True, 'x') + ->>> :t not -- boolean negation +Boolean negation: +>>> :t not + ->>> :t (&&) -- boolean 'and' operator +Boolean 'and' operator: +>>> :t (&&) + ->>> :t (+) -- addition of two numbers - ->>> :t max -- maximum of two values +Addition of two numbers: +>>> :t (+) + +Maximum of two values: +>>> :t max + You might not understand each type at this moment, but don't worry! You've only started your Haskell journey. Types will become your friends soon.