summaryrefslogtreecommitdiff
path: root/utils/iserv/iserv.cabal.in
blob: 46a0357a63e60d702f93261e88395d5665efb64f (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-- WARNING: iserv.cabal is automatically generated from iserv.cabal.in by
-- ../../configure.  Make sure you are editing iserv.cabal.in, not
-- iserv.cabal.

Name: iserv
Version: @ProjectVersion@
Copyright: XXX
License: BSD3
-- XXX License-File: LICENSE
Author: XXX
Maintainer: XXX
Synopsis: iserv allows GHC to delegate Template Haskell computations
Description:
  GHC can be provided with a path to the iserv binary with
  @-pgmi=/path/to/iserv-bin@, and will in combination with
  @-fexternal-interpreter@, compile Template Haskell though the
  @iserv-bin@ delegate. This is very similar to how ghcjs has been
  compiling Template Haskell, by spawning a separate delegate (so
  called runner on the javascript vm) and evaluating the splices
  there.
  .
  To use iserv with cross compilers, please see @libraries/libiserv@
  and @utils/iserv-proxy@.

Category: Development
build-type: Simple
cabal-version: >=1.10

Executable iserv
    Default-Language: Haskell2010
    ghc-options: -no-hs-main
    Main-Is: Main.hs
    C-Sources: cbits/iservmain.c
    Hs-Source-Dirs: src
    include-dirs: .
    Build-Depends: array      >= 0.5 && < 0.6,
                   base       >= 4   && < 5,
                   binary     >= 0.7 && < 0.11,
                   bytestring >= 0.10 && < 0.12,
                   containers >= 0.5 && < 0.7,
                   deepseq    >= 1.4 && < 1.5,
                   ghci       == @ProjectVersionMunged@,
                   libiserv   == @ProjectVersionMunged@

    if os(windows)
        Cpp-Options: -DWINDOWS
    else
        Build-Depends: unix   >= 2.7 && < 2.9