summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-01-17 11:26:48 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-30 14:12:24 -0500
commit55ef3bdc28681a22ceccf207707c49229f9b7559 (patch)
treed2cc7ebbd4796df1de120fbec8284c55a661a9ce /driver
parent621d8cf7fe0bbfa8893dc739120c7f3b12a6f472 (diff)
downloadhaskell-55ef3bdc28681a22ceccf207707c49229f9b7559.tar.gz
hadrian: Introduce ghci-wrapper package
This wraps the existing GHCi wrapper script (driver/ghci/ghci.c) in a cabal file and adds the package to Hadrian.
Diffstat (limited to 'driver')
-rw-r--r--driver/ghci/ghci-wrapper.cabal.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/driver/ghci/ghci-wrapper.cabal.in b/driver/ghci/ghci-wrapper.cabal.in
new file mode 100644
index 0000000000..c0053e9834
--- /dev/null
+++ b/driver/ghci/ghci-wrapper.cabal.in
@@ -0,0 +1,26 @@
+Name: ghci-wrapper
+Version: @ProjectVersion@
+Copyright: XXX
+License: BSD3
+-- XXX License-File: LICENSE
+Author: XXX
+Maintainer: XXX
+Synopsis: A wrapper around GHCi allowing convenient execution of scripts
+Description:
+ @ghci@ is a small wrapper program around GHC used on Windows
+ to ensure that console setup is performed correctly.
+Category: Development
+build-type: Simple
+cabal-version: >=1.10
+
+Executable ghci
+ Default-Language: Haskell2010
+ Main-Is: ghci.c
+ -- This is only used on Windows.
+ if !os(windows)
+ buildable: False
+ Include-Dirs: ../utils
+ C-Sources:
+ ghci.c
+ -- the following get copied from ../utils by hadrian
+ getLocation.c isMinTTY.c cwrapper.c \ No newline at end of file