Skip to content

Commit

Permalink
fix typo in chapter 3 (kowainik#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
thth authored Oct 19, 2020
1 parent 742b9e4 commit 0bdad6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chapter3.hs
Original file line number Diff line number Diff line change
@@ -835,7 +835,7 @@ instance ArchEnemy Double where
And then you can write polymorphic functions and not worry about which specific
type is underhood until it has the instance of the desired typeclass. For that
we are using __constrains__ in Haskell. It is the identification of affiliation
we are using __constraints__ in Haskell. It is the identification of affiliation
to the typeclass. The constraints should go after the "::" sign in the function
type declaration. You can specify one or many constraints. If more than one they
should be in parenthesis and comma-separated. The end of constraints is

0 comments on commit 0bdad6f

Please sign in to comment.