]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Lucu.cabal
Fixed two bugs
[Lucu.git] / Lucu.cabal
index ae858fb60dadeab0b017c6d430ee9466cc1f9527..e545e99ade1f3e0b7d4220270c41b9f62c19bed0 100644 (file)
@@ -16,10 +16,23 @@ Stability: experimental
 Homepage: http://ccm.sherry.jp/Lucu/
 Category: Network
 Tested-With: GHC == 6.8.1
-Build-Depends:
+Cabal-Version: >= 1.2
+
+Extra-Source-Files:
+    data/CompileMimeTypes.hs
+    data/mime.types
+    examples/HelloWorld.hs
+    examples/Makefile
+
+Flag build-lucu-implant-file
+    Description: Build the lucu-implant-file program.
+    Default:     True
+
+Library
+    Build-Depends:
         Crypto, base, bytestring, containers, directory, haskell-src,
         hxt, mtl, network, stm, time, unix, zlib
-Exposed-Modules:
+    Exposed-Modules:
         Network.HTTP.Lucu
         Network.HTTP.Lucu.Abortion
         Network.HTTP.Lucu.Config
@@ -38,7 +51,7 @@ Exposed-Modules:
         Network.HTTP.Lucu.Response
         Network.HTTP.Lucu.StaticFile
         Network.HTTP.Lucu.Utils
-Other-Modules:
+    Other-Modules:
         Network.HTTP.Lucu.Chunk
         Network.HTTP.Lucu.ContentCoding
         Network.HTTP.Lucu.DefaultPage
@@ -50,26 +63,24 @@ Other-Modules:
         Network.HTTP.Lucu.Preprocess
         Network.HTTP.Lucu.RequestReader
         Network.HTTP.Lucu.ResponseWriter
-Extra-Source-Files:
-        data/CompileMimeTypes.hs
-        data/mime.types
-        examples/HelloWorld.hs
-        examples/Makefile
-ghc-options:
-        -fglasgow-exts
+    ghc-options:
         -Wall
+        -XDeriveDataTypeable
+        -XUnboxedTuples
         -funbox-strict-fields
 
-
-Executable: lucu-implant-file
-Main-Is: ImplantFile.hs
-ghc-options:
-        -fglasgow-exts
+Executable lucu-implant-file
+    if flag(build-lucu-implant-file)
+        Buildable: True
+    else
+        Buildable: False
+    Main-Is: ImplantFile.hs
+    ghc-options:
         -Wall
+        -XUnboxedTuples
         -funbox-strict-fields
 
-
---Executable: HelloWorld
---Main-Is: HelloWorld.hs
---Hs-Source-Dirs: ., examples
---ghc-options: -fglasgow-exts -fwarn-missing-signatures -fwarn-unused-imports -funbox-strict-fields -O3 -prof -auto-all
+--Executable HelloWorld
+--    Main-Is: HelloWorld.hs
+--    Hs-Source-Dirs: ., examples
+--    ghc-options: -fglasgow-exts -Wall -funbox-strict-fields -O3 -prof -auto-all