]> gitweb @ CieloNegro.org - Lucu.git/commitdiff
New cabal format
authorpho <pho@cielonegro.org>
Mon, 5 Nov 2007 05:39:10 +0000 (14:39 +0900)
committerpho <pho@cielonegro.org>
Mon, 5 Nov 2007 05:39:10 +0000 (14:39 +0900)
darcs-hash:20071105053910-62b54-0eafeadb87e25854c85403462fa747fc1b01d88d.gz

Lucu.cabal

index ae858fb60dadeab0b017c6d430ee9466cc1f9527..1d07b7f9726df5bcf6cf36dae5fb203eecbd8b49 100644 (file)
@@ -16,10 +16,19 @@ 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
+
+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 +47,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 +59,19 @@ 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:
+    ghc-options:
         -fglasgow-exts
         -Wall
         -funbox-strict-fields
 
-
-Executable: lucu-implant-file
-Main-Is: ImplantFile.hs
-ghc-options:
+Executable lucu-implant-file
+    Main-Is: ImplantFile.hs
+    ghc-options:
         -fglasgow-exts
         -Wall
         -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