Type: git
Location: git://git.cielonegro.org/EsounD.git
+Flag build-examples
+ Description: Build example programs.
+ Default: False
+
Library
Build-Depends:
- base == 4.2.*,
+ base == 4.*,
base-unicode-symbols == 0.2.*,
bindings-EsounD == 0.1.*,
- network == 2.2.*,
- regions == 0.7.*,
- safer-file-handles == 0.8.*,
+ network == 2.3.*,
+ regions == 0.8.*,
+ safer-file-handles == 0.9.*,
storablevector == 0.2.*,
transformers == 0.2.*,
unix == 2.4.*
GHC-Options:
-Wall
+
+Executable hs-esd-player-example
+ if flag(build-examples)
+ Buildable: True
+ else
+ Buildable: False
+
+ HS-Source-Dirs:
+ .,
+ examples
+
+ Main-Is: EsdPlayerExample.hs
+
+ Extensions:
+ EmptyDataDecls
+ KindSignatures
+ ScopedTypeVariables
+ UnicodeSyntax
+
+ GHC-Options:
+ -Wall
-#RUN_COMMAND = $(MAKE) -C examples run
+RUN_COMMAND = ./dist/build/hs-esd-player-example/hs-esd-player-example
-CONFIGURE_ARGS = -O
+CONFIGURE_ARGS = -O -fbuild-examples
include cabal-package.mk
plRate ∷ !Int
-- THINKME: We really want to use RegionalFileHandle but we
-- can't, because safer-file-handles currently provides no ways
- -- to wrap ordinary handles.
+ -- to wrap ordinary handles into safer handles.
, plHandle ∷ !Handle
- , plCloseH ∷ !(CloseHandle r)
+ , plCloseH ∷ !(FinalizerHandle r)
}
instance Dup (Player fr ch) where
--- /dev/null
+module Main where
+import Control.Monad.Trans.Region
+import Sound.EsounD.Player
+
+main ∷ IO ()
+main = runRegionT $
+ do pl ← openPlayer 44100 "localhost" Nothing
+ fail "FIXME"
+