Bryan O'Sullivan avatar Bryan O'Sullivan committed 5b11074

Build with GHC 6.8.x

Comments (0)

Files changed (1)

 Name:                suffixtree
-Version:             0.2.1
+Version:             0.2.2
 Synopsis:            Efficient, lazy suffix tree implementation
 Description:         An efficient, lazy suffix tree implementation.
 Category:            Data Structures, Data
 Author:              Bryan O'Sullivan <bos@serpentine.com>
 Maintainer:          bos@serpentine.com
 Homepage:            http://www.serpentine.com/software/suffixtree/
--- add fps for ghc 6.4.2
-Build-Depends:       base, QuickCheck
-Exposed-modules:     Data.SuffixTree
-ghc-options:         -W -O2 -optc-O3 -funbox-strict-fields -fno-warn-incomplete-patterns
-extra-source-files:  Makefile
+Build-Type:          Simple
+Cabal-Version:       >= 1.2
+Extra-Source-Files:  Makefile
                      examples/Makefile
                      examples/Tiny.hs
                      examples/UniqueMatch.hs
+
+Flag bytestring-in-base
+  Description: Is ByteString in the base or bytestring package?
+  Default: False
+
+Flag split-base
+  Description: Has the base package been split up?
+  Default: True
+
+Library
+  if flag(bytestring-in-base)
+    -- bytestring was in base-2.0 and 2.1.1
+    Build-Depends: base >= 2.0 && < 2.2
+  else
+    -- in base 1.0 and 3.0, bytestring is a separate package
+    Build-Depends: base < 2.0 || >= 3, bytestring >= 0.9
+
+  if flag(split-base)
+    Build-Depends: base >= 3.0, containers
+  else
+    Build-Depends: base < 3.0
+
+  Build-Depends:     QuickCheck
+  Exposed-Modules:   Data.SuffixTree
+  GHC-Options:       -Wall -O2 -funbox-strict-fields -fno-warn-incomplete-patterns
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.