summaryrefslogtreecommitdiff
path: root/driver/ghci/ghci-wrapper.cabal.in
blob: 2a5ff2bb1582069f93fb1a039bfaba435ed7ee48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- WARNING: ghci-wrapper.cabal is automatically generated from ghci-wrapper.cabal.in by
-- ./configure.  Make sure you are editing ghci-wrapper.cabal.in, not ghci-wrapper.cabal.

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:
       -- the following get copied from ../utils by hadrian
       getLocation.c isMinTTY.c cwrapper.c
    -- We need to call the versioned ghc executable because the unversioned
    -- GHC executable is a wrapper that doesn't call FreeConsole and so
    -- breaks an interactive process like GHCi. See #21889, #14150 and #13411
    CPP-Options: -DEXE_PATH="ghc-@ProjectVersion@"