ghc-knob
Memory-backed handles
Create memory-backed 'Handle's, referencing virtual files. This is mostly useful for testing 'Handle'-based APIs without having to interact with the filesystem. > import Data.ByteString (pack) > import Data.Knob > import System.IO > > main = do > knob <- newKnob (pack []) > h <- newFileHandle knob "test.txt" WriteMode > hPutStrLn h "Hello world!" > hClose h > bytes <- Data.Knob.getContents knob > putStrLn ("Wrote bytes: " ++ show bytes).
openSUSE Leap 16.0 没有可用的官方软件包发行版
不受支持的发行版
下列发行版未被官方支持。使用这些软件包需要您自担风险。