Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:2023:haskell:l09 [2023/05/01 11:27] bogdan.deac |
pp:2023:haskell:l09 [2023/05/02 22:15] (current) bogdan.deac |
||
---|---|---|---|
Line 66: | Line 66: | ||
**9.1.1** Let's implement a ''ChessResult'' data type. In chess, a game result can be either a Win, a Draw or a Loss. | **9.1.1** Let's implement a ''ChessResult'' data type. In chess, a game result can be either a Win, a Draw or a Loss. | ||
<code haskell> | <code haskell> | ||
- | data ChessResult = ??? deriving Show | + | data ChessResult = ??? |
</code> | </code> | ||