Skip to content

Commit

Permalink
Fix (kowainik#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
chshersh authored Sep 30, 2020
1 parent 3bc69ef commit 74a83c2
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/Chapter1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t 'a'
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t 42
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t (True, 'x') -- a pair of boolean and char
A pair of boolean and char:
>>> :t (True, 'x')
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t not -- boolean negation
Boolean negation:
>>> :t not
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t (&&) -- boolean 'and' operator
Boolean 'and' operator:
>>> :t (&&)
<INSERT THE RESULT INSTEAD OF THE TEXT>
>>> :t (+) -- addition of two numbers
>>> :t max -- maximum of two values
Addition of two numbers:
>>> :t (+)
<INSERT THE RESULT INSTEAD OF THE TEXT>
Maximum of two values:
>>> :t max
<INSERT THE RESULT INSTEAD OF THE TEXT>
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.
Expand Down

0 comments on commit 74a83c2

Please sign in to comment.