hsndfile-vector-0.5.2: Haskell bindings for libsndfile (Data.Vector interface)

Safe HaskellNone
LanguageHaskell98

Sound.File.Sndfile.Buffer.Vector

Description

This module provides a Buffer instance for Vector, wrapped in a newtype. See Sound.File.Sndfile.Buffer.Vector.Examples for some example code.

Synopsis

Documentation

data Buffer a #

Newtype wrapper for Vector.

Instances

toBuffer :: Vector a -> Buffer a #

Construct a Buffer from a Vector.

fromBuffer :: Buffer a -> Vector a #

Extract the Vector from a Buffer.

withBuffer :: (Vector a -> Vector b) -> Buffer a -> Buffer b #