]> gitweb @ CieloNegro.org - EsounD.git/blobdiff - EsounD.cabal
openPlayer should accept Nothing for the hostname
[EsounD.git] / EsounD.cabal
index d9218247d8a05b0d8bc18e548dc828eb8ebcdd0d..783ef4751b5141ecb0de3a11b7b5e8791650dfdd 100644 (file)
@@ -20,14 +20,19 @@ Source-Repository head
     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.*,
+        monad-peel                == 0.1.*,
+        network                   == 2.3.*,
+        regions                   == 0.8.*,
+        safer-file-handles        == 0.9.*,
         storablevector            == 0.2.*,
         transformers              == 0.2.*,
         unix                      == 2.4.*
@@ -35,16 +40,26 @@ Library
     Exposed-Modules:
         Sound.EsounD
         Sound.EsounD.Player
+        Sound.EsounD.Streams
         Sound.EsounD.Types
 
     Other-Modules:
         Sound.EsounD.Internals
 
-    Extensions:
-        EmptyDataDecls
-        KindSignatures
-        ScopedTypeVariables
-        UnicodeSyntax
-
     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
+
+   GHC-Options:
+        -Wall