summaryrefslogtreecommitdiff
path: root/utils/hsc2hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-04 22:22:06 +0000
committerIan Lynagh <igloo@earth.li>2008-07-04 22:22:06 +0000
commitd5962639234c30fbfca3fa5845c8a03686bb8fb0 (patch)
tree69082985d39d355c63744457086d905aac3f6346 /utils/hsc2hs
parent854dd40a5c5d2b22be5a314a351772daeffa6dbd (diff)
downloadhaskell-d5962639234c30fbfca3fa5845c8a03686bb8fb0.tar.gz
In utils/hsc2hs, add LICENSE and hsc2hs.cabal from the standalone repo
Diffstat (limited to 'utils/hsc2hs')
-rw-r--r--utils/hsc2hs/LICENSE31
-rw-r--r--utils/hsc2hs/hsc2hs.cabal28
2 files changed, 59 insertions, 0 deletions
diff --git a/utils/hsc2hs/LICENSE b/utils/hsc2hs/LICENSE
new file mode 100644
index 0000000000..b5059b71f6
--- /dev/null
+++ b/utils/hsc2hs/LICENSE
@@ -0,0 +1,31 @@
+The Glasgow Haskell Compiler License
+
+Copyright 2002, The University Court of the University of Glasgow.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+- Neither name of the University nor the names of its contributors may be
+used to endorse or promote products derived from this software without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
+GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/utils/hsc2hs/hsc2hs.cabal b/utils/hsc2hs/hsc2hs.cabal
new file mode 100644
index 0000000000..ec7f80848b
--- /dev/null
+++ b/utils/hsc2hs/hsc2hs.cabal
@@ -0,0 +1,28 @@
+Name: hsc2hs
+Version: 0.67
+Copyright: 2000, Marcin Kowalczyk
+Build-Depends: base, directory, process
+License: BSD3
+License-File: LICENSE
+Author: Marcin Kowalczyk <qrczak@knm.org.pl>
+Maintainer: cvs-fptools@haskell.org
+Synopsis: A preprocessor that helps with writing Haskell bindings to C code
+Description:
+ The hsc2hs program can be used to automate some parts of the
+ process of writing Haskell bindings to C code. It reads an
+ almost-Haskell source file with embedded special constructs, and
+ outputs a real Haskell file with these constructs processed, based
+ on information taken from some C headers. The extra constructs
+ provide Haskell counterparts of C types, values of C constants,
+ including sizes of C types, and access to fields of C structs.
+ .
+ For more details, see
+ http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html
+Category: Development
+Data-Files: template-hsc.h
+
+Executable: hsc2hs
+Main-Is: Main.hs
+-- needed for ReadP (used by Data.Version)
+Hugs-Options: -98
+Extensions: CPP, ForeignFunctionInterface