Fixed mistake in type signature.

I imagine this is what you meant.
This commit is contained in:
Anton Farmar 2015-09-05 21:30:21 +01:00
parent fab5ccfcde
commit 5bd1923251

View File

@ -40,7 +40,7 @@ The `nub` function removes duplicate elements from lists.
It can be defined as:
```
nub :: Eq => [a] -> [a]
nub :: Eq a => [a] -> [a]
nub [] = []
nub (x:xs) = x : nub (filter (x/=) xs)
```