summaryrefslogtreecommitdiff
path: root/utils/runghc/runghc.cabal.in
blob: cf0d085a3453991c885e6a1e1757614667773b3f (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
Name: runghc
Version: @ProjectVersion@
Copyright: XXX
License: BSD3
-- XXX License-File: LICENSE
Author: XXX
Maintainer: XXX
Synopsis: A wrapper around GHC allowing convenient execution of scripts
Description:
    @runghc@ is a small wrapper program around GHC which allows the compiler
    to be used as a UNIX-style script interpreter. For instance,
    .
    @
    $ cat <<EOF > Hi.hs
    > \#!/usr/bin/env runghc
    > main = putStrLn "hello!"
    > EOF
    $ chmod u+x Hi.hs
    $ ./Hi.hs
    hello!
    @
Category: Development
build-type: Simple
cabal-version: >=1.10

Executable runghc
    Default-Language: Haskell2010
    Main-Is: Main.hs

    Build-Depends: base       >= 3   && < 5,
                   directory  >= 1   && < 1.4,
                   process    >= 1   && < 1.7,
                   filepath

    if !os(windows)
      build-depends: unix