Name : ghc-knob
| |
Version : 0.1.1
| Vendor : openSUSE
|
Release : bp150.2.6
| Date : 2018-07-30 20:23:50
|
Group : Development/Libraries/Haskell
| Source RPM : ghc-knob-0.1.1-bp150.2.6.src.rpm
|
Size : 0.07 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Memory-backed handles
|
Description :
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).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15/standard/x86_64 |