haskell - Where has hSetEncoding gone? -
i sure while ghc added ability explicitly set character encoding on handle
. however, when in system.io
, don't see relating character encodings. (i have haskell platform 2012.4.0.0)
am blind, or mistaken?
i investigated function hiding.
summary: make sure use system.io
package base, not package haskell2010.
details: hoogle tells me there system.io.hsetencoding
in latest base package.
checking documentation haskell platform 2012.4.0.0, see system.io
module haskell2010
package. , module doesn't seem contain hsetencoding
.
but not despair, there seems system.io
base contains hsetencoding
.
so guess have make sure use system.io
base , not haskell2010.
Comments
Post a Comment