[commit: hsc2hs] master: Update .cabal file and LANGUAGE pragmas (546438f)
git at git.haskell.org
git at git.haskell.org
Sat Dec 27 22:24:15 UTC 2014
Repository : ssh://git@git.haskell.org/hsc2hs
On branch : master
Link : http://git.haskell.org/hsc2hs.git/commitdiff/546438f93f8eb11da6b9279374552cfd86499253
>---------------------------------------------------------------
commit 546438f93f8eb11da6b9279374552cfd86499253
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Dec 27 23:22:17 2014 +0100
Update .cabal file and LANGUAGE pragmas
>---------------------------------------------------------------
546438f93f8eb11da6b9279374552cfd86499253
C.hs | 1 -
Common.hs | 1 -
Main.hs | 3 +--
UtilsCodegen.hs | 1 -
hsc2hs.cabal | 24 ++++++++++++------------
5 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/C.hs b/C.hs
index c6a7e5e..dd02f43 100644
--- a/C.hs
+++ b/C.hs
@@ -1,4 +1,3 @@
-{-# LANGUAGE CPP #-}
module C where
{-
diff --git a/Common.hs b/Common.hs
index ae11241..fefc40c 100644
--- a/Common.hs
+++ b/Common.hs
@@ -1,4 +1,3 @@
-{-# LANGUAGE CPP #-}
module Common where
import Control.Exception ( bracket_ )
diff --git a/Main.hs b/Main.hs
index 30b3a2d..afa192e 100644
--- a/Main.hs
+++ b/Main.hs
@@ -1,5 +1,4 @@
-{-# OPTIONS -cpp #-}
-{-# LANGUAGE CPP, ForeignFunctionInterface #-}
+{-# LANGUAGE CPP #-}
------------------------------------------------------------------------
-- Program for converting .hsc files to .hs files, by converting the
diff --git a/UtilsCodegen.hs b/UtilsCodegen.hs
index 8844052..19befd2 100644
--- a/UtilsCodegen.hs
+++ b/UtilsCodegen.hs
@@ -1,4 +1,3 @@
-{-# LANGUAGE CPP #-}
module UtilsCodegen where
{-
diff --git a/hsc2hs.cabal b/hsc2hs.cabal
index 2eee52a..6dfa7c4 100644
--- a/hsc2hs.cabal
+++ b/hsc2hs.cabal
@@ -1,7 +1,6 @@
Name: hsc2hs
Version: 0.67
Copyright: 2000, Marcin Kowalczyk
-Build-Depends: base, directory, process
License: BSD3
License-File: LICENSE
Author: Marcin Kowalczyk <qrczak at knm.org.pl>
@@ -21,20 +20,21 @@ Description:
Category: Development
Data-Files: template-hsc.h
build-type: Simple
-cabal-version: >=1.2
+cabal-version: >=1.10
Executable hsc2hs
+ Default-Language: Haskell2010
Main-Is: Main.hs
- Other-Modules: HSCParser,
- DirectCodegen,
- CrossCodegen,
- UtilsCodegen,
- Common,
- C,
- Flags
- -- needed for ReadP (used by Data.Version)
- Hugs-Options: -98
- Extensions: CPP, ForeignFunctionInterface
+ Other-Modules:
+ C
+ Common
+ CrossCodegen
+ DirectCodegen
+ Flags
+ HSCParser
+ UtilsCodegen
+
+ Other-Extensions: CPP, NoMonomorphismRestriction
Build-Depends: base >= 4 && < 5,
containers >= 0.2 && < 0.6,
More information about the ghc-commits
mailing list