The latest version of knob is 0.2.2-1.

knob

Version 0.1.1 revision 1 uploaded by Bodigrim.

Package meta

Synopsis
Memory-backed handles
Description

Create memory-backed Handles, 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)
Author
John Millikin <jmillikin@gmail.com>
Bug reports
mailto:jmillikin@gmail.com
Category
System
Copyright
n/a
Homepage
https://john-millikin.com/software/knob/
Maintainer
John Millikin <jmillikin@gmail.com>
Package URL
n/a
Stability
experimental

Components