[commit: packages/primitive] ghc-head: Drop redundant FFI language extension pragma (f048a07)
git at git.haskell.org
git at git.haskell.org
Tue Nov 19 22:44:24 UTC 2013
Repository : ssh://git@git.haskell.org/primitive
On branch : ghc-head
Link : http://git.haskell.org/packages/primitive.git/commitdiff/f048a07e00195043a39f095eeb8451b3daf8cd59
>---------------------------------------------------------------
commit f048a07e00195043a39f095eeb8451b3daf8cd59
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Wed Nov 6 19:19:00 2013 +0100
Drop redundant FFI language extension pragma
...since `ForeignFunctionInterface` is implied by Haskell2010.
This also sets proper upper bounds on base and ghc-prim as this
`primitive` is too tightly coupled with those packages and very likely
to break with each major GHC release.
>---------------------------------------------------------------
f048a07e00195043a39f095eeb8451b3daf8cd59
Data/Primitive/ByteArray.hs | 3 +--
Data/Primitive/Internal/Operations.hs | 2 +-
primitive.cabal | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Data/Primitive/ByteArray.hs b/Data/Primitive/ByteArray.hs
index 6b1a609..2cce7ae 100644
--- a/Data/Primitive/ByteArray.hs
+++ b/Data/Primitive/ByteArray.hs
@@ -1,5 +1,4 @@
-{-# LANGUAGE CPP, MagicHash, UnboxedTuples, ForeignFunctionInterface,
- UnliftedFFITypes, DeriveDataTypeable #-}
+{-# LANGUAGE CPP, MagicHash, UnboxedTuples, UnliftedFFITypes, DeriveDataTypeable #-}
-- |
-- Module : Data.Primitive.ByteArray
diff --git a/Data/Primitive/Internal/Operations.hs b/Data/Primitive/Internal/Operations.hs
index 3be5ed6..84912f4 100644
--- a/Data/Primitive/Internal/Operations.hs
+++ b/Data/Primitive/Internal/Operations.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE MagicHash, ForeignFunctionInterface, UnliftedFFITypes #-}
+{-# LANGUAGE MagicHash, UnliftedFFITypes #-}
-- |
-- Module : Data.Primitive.Internal.Operations
diff --git a/primitive.cabal b/primitive.cabal
index 99a84b2..208de56 100644
--- a/primitive.cabal
+++ b/primitive.cabal
@@ -19,7 +19,7 @@ Extra-Source-Files: changelog
Library
Default-Language: Haskell2010
Other-Extensions:
- BangPatterns, CPP, DeriveDataTypeable, ForeignFunctionInterface,
+ BangPatterns, CPP, DeriveDataTypeable,
MagicHash, TypeFamilies, UnboxedTuples, UnliftedFFITypes
Exposed-Modules:
@@ -36,7 +36,7 @@ Library
Data.Primitive.Internal.Compat
Data.Primitive.Internal.Operations
- Build-Depends: base >= 4.3 && < 5, ghc-prim >= 0.2
+ Build-Depends: base >= 4.3 && < 4.8, ghc-prim >= 0.2 && < 0.4
Ghc-Options: -O2 -Wall
More information about the ghc-commits
mailing list