homepage: https://github.com/ncfavier/knob
changelog-type: ''
hash: c76da25481eb2db4d26215824f458717761cccd835f67725464e0d1ef4570dff
test-bench-deps: {}
maintainer: Naïm Favier <n@monade.li>
synopsis: Memory-backed handles
changelog: ''
basic-deps:
  bytestring: '>=0.9 && <0.12'
  base: '>=4.15 && <5'
  transformers: '>=0.2 && <0.7'
all-versions:
- '0.1'
- 0.1.1
- '0.2'
author: John Millikin <jmillikin@gmail.com>
latest: '0.2'
description-type: haddock
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)
license-name: MIT

homepage: https://github.com/ncfavier/knob
changelog-type: ''
hash: a0e49e620e6e587c9492aaf6c40a6c6370cd947b802fa0b4ed35e5edde82cd83
test-bench-deps: {}
maintainer: Naïm Favier <n@monade.li>
synopsis: Memory-backed handles
changelog: ''
basic-deps:
  bytestring: '>=0.9 && <0.12'
  base: '>=4.15 && <5'
  transformers: '>=0.2 && <0.7'
all-versions:
- '0.1'
- 0.1.1
- '0.2'
- 0.2.1
author: John Millikin <jmillikin@gmail.com>
latest: 0.2.1
description-type: haddock
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)
license-name: MIT

Update from Hackage at 2022-10-06T13:28:37Z
Update from Hackage at 2022-10-06T13:28:37Z
