kazu-yamamoto/ghc-mod — pull request #111 by mvoidex (2013-03-29 13:04:49+00:00)
Title: Fixed unicode

'ghc-mod browse Prelude.Unicode' or 'ghc-mod browse Control.Concurrent.Thread -d' failed with

ghc-mod.exe: : commitBuffer: invalid argument (invalid character)

Fixed with `hSetEncoding stdout utf8`

> ghc-mod browse Prelude.Unicode
π
ℚ
ℤ
> ghd-mod browse Control.Concurrent.Thread -d
forkIO :: IO α -> IO (ThreadId, IO (Result α))
forkIOWithUnmask :: ((forall β. IO β -> IO β) -> IO α) -> IO (ThreadId, IO (Result α))
forkOS :: IO α -> IO (ThreadId, IO (Result α))
forkOn :: Int -> IO α -> IO (ThreadId, IO (Result α))
forkOnWithUnmask :: Int -> ((forall β. IO β -> IO β) -> IO α) -> IO (ThreadId, IO (Result α))
result :: Result α -> IO α
type Result α