[Haskell-cafe] SOX - play simple
Gary Klindt
gary.klindt at googlemail.com
Wed Nov 28 15:48:04 CET 2012
Dear Cafe,
after installing the Sox library
(cabal install sox)
I wanted to let run a minimal example from
http://hackage.haskell.org/packages/archive/sox/0.2.2.2/doc/html/Sound-Sox-Play.html
module Main where
import Sound.Sox.Play
import Sound.Sox.Signal.List
--import Sound.Sox.Option.Format
import Data.Int
main = do
simple Sound.Sox.Signal.List.put
Option.none
11025
(iterate (1000+) (0::Data.Int.Int16))
in this version, I get the error:
Not in scope: `Option.none'
So, I imported Sound.Sox.Option.Format, because there is a none with the
right type. I also changed Option.none to none.
Then the program compiles and I get the runtime error:
fd:4: hClose: resource vanished (Broken pipe)
What is wrong here?
I appreciate your help!
Best regards, Gary
More information about the Haskell-Cafe
mailing list