From b75677a27440e54047ec25b8dee40de946e4b8ae Mon Sep 17 00:00:00 2001
From: Derek Elkins <derek.a.elkins@gmail.com>
Date: Thu, 6 Mar 2008 05:02:48 +0000
Subject: [PATCH] Update the .cabal file for Cabal >= 1.2

---
 parsec.cabal | 42 +++++++++++++++++++++++-------------------
 1 file changed, 23 insertions(+), 19 deletions(-)

diff --git a/parsec.cabal b/parsec.cabal
index f0302b5..f56c96c 100644
--- a/parsec.cabal
+++ b/parsec.cabal
@@ -1,5 +1,6 @@
 name:		parsec
-version:	3.00.0
+version:	3.0.0
+cabal-version: >= 1.2
 license:	BSD3
 license-file:	LICENSE
 author:		Daan Leijen <daan@cs.uu.nl>, Paolo Martini <paolo@nemail.it>
@@ -7,6 +8,7 @@ maintainer:	Derek Elkins <derek.a.elkins@gmail.com>
 homepage:	http://www.cs.uu.nl/~daan/parsec.html
 category:	Parsing
 synopsis:	Monadic parser combinators
+build-type: Simple
 description:
 	Parsec is designed from scratch as an industrial-strength parser
 	library.  It is simple, safe, well documented (on the package
@@ -14,20 +16,22 @@ description:
 	and is also fast.  It is defined as a monad transformer that can be
 	stacked on arbitrary monads, and it is also parametric in the
 	input stream type.
-exposed-modules:
-	Text.Parsec,
-	Text.Parsec.String,
-	Text.Parsec.ByteString,
-	Text.Parsec.ByteString.Lazy,
-	Text.Parsec.Pos,
-	Text.Parsec.Error,
-	Text.Parsec.Prim,
-	Text.Parsec.Char,
-	Text.Parsec.Combinator,
-	Text.Parsec.Token,
-	Text.Parsec.Expr,
-	Text.Parsec.Language,
-	Text.Parsec.Perm
+
+library    
+    exposed-modules:
+        Text.Parsec,
+        Text.Parsec.String,
+        Text.Parsec.ByteString,
+        Text.Parsec.ByteString.Lazy,
+        Text.Parsec.Pos,
+        Text.Parsec.Error,
+        Text.Parsec.Prim,
+        Text.Parsec.Char,
+        Text.Parsec.Combinator,
+        Text.Parsec.Token,
+        Text.Parsec.Expr,
+        Text.Parsec.Language,
+        Text.Parsec.Perm,
         Text.ParserCombinators.Parsec,
         Text.ParserCombinators.Parsec.Char,
         Text.ParserCombinators.Parsec.Combinator,
@@ -38,7 +42,7 @@ exposed-modules:
         Text.ParserCombinators.Parsec.Pos,
         Text.ParserCombinators.Parsec.Prim,
         Text.ParserCombinators.Parsec.Token
-build-depends:	base, mtl, bytestring
-extensions:	ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts
-ghc-options:	-O2
-ghc-prof-options:	-auto-all
+    build-depends:	base, mtl, bytestring
+    extensions:	ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts
+    ghc-options:	-O2
+    ghc-prof-options:	-auto-all
-- 
GitLab