Skip to content

Commit

Permalink
fix type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim committed Apr 18, 2024
1 parent 379cd8a commit d42aab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/lecture08.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d42aab6

Please sign in to comment.