I investigated where the function is hiding.
Summary: Make sure to use System.IO
from package base, not from package haskell2010.
Details: Hoogle tells me that there is System.IO.hSetEncoding
in the latest base package.
Checking the documentation about the Haskell platform 2012.4.0.0, I see a System.IO
module from the haskell2010
package. And that module doesn't seem to contain hSetEncoding
.
But do not despair, there seems to also be the System.IO
from base which contains hSetEncoding
.
So I guess you just have to make sure that you use the System.IO
from base and not from haskell2010.