silently icon indicating copy to clipboard operation
silently copied to clipboard

Prevent or capture output to stdout or other handles in Haskell

Results 6 silently issues
Sort by recently updated
recently updated
newest added

As reported in #25, `hSilence` etc. currently fail with `--io-manager=native` on Windows. According to GHC issue [#22146](https://gitlab.haskell.org/ghc/ghc/-/issues/22146), the `hDuplicateTo` API is not supported for the new IO manager (which I...

I think it is an upstream problem. See GHC issue [#22146](https://gitlab.haskell.org/ghc/ghc/-/issues/22146).

cfunc.c: ```c #include void cFunc() { printf("from C\n"); } ``` Main.hs: ```haskell module Main where import System.IO.Silently foreign import ccall unsafe "cFunc" cFunc :: IO () main :: IO ()...

I don't see why this library writes to temp file as opposed to using a pipe with a call like this one: https://hackage.haskell.org/package/process-1.6.3.0/docs/System-Process.html#v:createPipe It seems like a pipe is more...

As far as I know, it's impossible to implement `silently` in a thread-safe manner, but I'd love to be told otherwise. So I'm assuming that the functions in this library...

ghci> hSetEncoding stderr utf16 ghci> hGetEncoding stderr Just UTF-16 ghci> hSilence [stderr] $ print "hi" "hi" ghci> hGetEncoding stderr Just UTF-8 So, encoding was UTF-16, but after stderr was closed...