summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-05-14 09:24:10 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-05-14 10:21:35 +0200
commitdd92e2179e3171a0630834b773c08d416101980d (patch)
treeeb79866a2c3474bd1b91c6110f7e5c56f8db6bbf /libraries
parent0148a1c416e42a7d7c9ff3624a0640963bfe0012 (diff)
downloadhaskell-dd92e2179e3171a0630834b773c08d416101980d.tar.gz
Set cabal files to default-language:Haskell2010
This is a first step towards eliminating `default-extensions` in favour of per-file declared `{-# LANGUAGE ... #-}` pragmas. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/bin-package-db/bin-package-db.cabal16
-rw-r--r--libraries/integer-simple/integer-simple.cabal12
2 files changed, 14 insertions, 14 deletions
diff --git a/libraries/bin-package-db/bin-package-db.cabal b/libraries/bin-package-db/bin-package-db.cabal
index 44408a77b6..699a1dde71 100644
--- a/libraries/bin-package-db/bin-package-db.cabal
+++ b/libraries/bin-package-db/bin-package-db.cabal
@@ -4,22 +4,22 @@ license: BSD3
maintainer: ghc-devs@haskell.org
bug-reports: glasgow-haskell-bugs@haskell.org
synopsis: A binary format for the package database
-cabal-version: >=1.6
-build-type: Simple
+cabal-version: >=1.10
+build-type: Simple
source-repository head
type: git
location: http://git.haskell.org/ghc.git
subdir: libraries/bin-package-db
-Library {
+Library
+ default-language: Haskell2010
+
exposed-modules:
Distribution.InstalledPackageInfo.Binary
- build-depends: base >= 4 && < 5
-
- build-depends: binary >= 0.5 && < 0.8,
+ build-depends: base >= 4 && < 5,
+ binary >= 0.5 && < 0.8,
Cabal >= 1.20 && < 1.21
- extensions: CPP
-}
+ default-extensions: CPP
diff --git a/libraries/integer-simple/integer-simple.cabal b/libraries/integer-simple/integer-simple.cabal
index fa41c240c4..51d3cc7b5b 100644
--- a/libraries/integer-simple/integer-simple.cabal
+++ b/libraries/integer-simple/integer-simple.cabal
@@ -7,7 +7,7 @@ maintainer: igloo@earth.li
synopsis: Simple Integer library
description:
This package contains an simple Integer library.
-cabal-version: >=1.6
+cabal-version: >=1.10
build-type: Simple
source-repository head
@@ -15,17 +15,17 @@ source-repository head
location: http://git.haskell.org/ghc.git
subdir: libraries/integer-simple
-Library {
+Library
+ default-language: Haskell2010
+
build-depends: ghc-prim
exposed-modules: GHC.Integer
GHC.Integer.Simple.Internals
GHC.Integer.Logarithms
GHC.Integer.Logarithms.Internals
other-modules: GHC.Integer.Type
- extensions: CPP, MagicHash, BangPatterns, UnboxedTuples,
- ForeignFunctionInterface, UnliftedFFITypes,
- NoImplicitPrelude
+ default-extensions: CPP, MagicHash, BangPatterns, UnboxedTuples,
+ UnliftedFFITypes, NoImplicitPrelude
-- We need to set the package name to integer-simple
-- (without a version number) as it's magic.
ghc-options: -package-name integer-simple -Wall
-}