learnyouahaskell / learnyouahaskell.github.io

A community version of the renowned "Learn You a Haskell" (LYAH) tutorials collection!
https://learnyouahaskell.github.io
Other
317 stars 39 forks source link

Fixed strange wording #29

Closed miestrode closed 2 years ago

miestrode commented 2 years ago

Whilst reading this part, I found the wording here to be both incorrect and cumbersome, unless I somehow misunderstood it. This PR changes it to fix that issue.

MatthijsBlom commented 2 years ago

This looks good to me. Thanks!

It looks like this chapter needs updating: these days catch :: Exception e => IO a -> (e -> IO a) -> IO a instead of catch :: IO a -> (IOError -> IO a) -> IO a.

miestrode commented 2 years ago

I honestly agree. As another example, the chapter is also outdated in the functions it uses for RNG. From what I know, one should use uniform, not random these days.

I might make a PR fixing this issue alongside others.

smith558 commented 2 years ago

I honestly agree. As another example, the chapter is also outdated in the functions it uses for RNG. From what I know, one should use uniform, not random these days.

I might make a PR fixing this issue alongside others.

That'd be awesome if you do find time to open that PR!

MatthijsBlom commented 2 years ago

By all means feel free to open issues for any problems you encounter, even if only to point them out to others.

smith558 commented 2 years ago

@miestrode Thank you for your contribution! 🙂