Effective Haskell: Chapter 8 "Viewing One Page at a Time"

In Chapter 8, (Viewing Text One Page at a Time), when defining groupsOf, it says we should use a polymorphic type in the type signature, but Text.Text is repeated from the original version (this is fixed later when the function is defined).

Since we’re using Text in this suggestion, it’s probably worthwhile to mention OverloadedStrings, especially if we want to test in ghci.

BTW, I think it’s really neat to have a pager application as the example in this chapter.

1 Like

Good catch, thanks! And I’m glad you like the example! I think it’s a really fun way to show off a lot of IO with something that’s interactive and feels familiar.