diff --git a/lectures/lecture08.md b/lectures/lecture08.md index d08b136..2201340 100644 --- a/lectures/lecture08.md +++ b/lectures/lecture08.md @@ -121,7 +121,7 @@ etc. If you are interested in how they work, try running e.g. `:i Num` in GHCi. Polymorphic functions can contain **type constraints**, for example ```haskell -(==3) :: (Num a, Eq a) => Int -> Bool +(==3) :: (Num a, Eq a) => a -> Bool ``` is a function that checks if a number is equal to `3`. For this, the input has to be a number itself and additionally, it has to implement `Eq`. Generally, everything before the `=>` in a type