summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Lindblad <76970-lindblad@users.noreply.gitlab.haskell.org>2022-09-22 19:16:09 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-17 19:22:33 -0400
commit0d9fb651768f0b88be0a564deebbbd2391104ab4 (patch)
tree8a5b0f17a0d8fbafd47681d0c13ef74b5b73df9b /utils
parent39beb8017ba64801f6573cf1a1a67e94fdb522ee (diff)
downloadhaskell-0d9fb651768f0b88be0a564deebbbd2391104ab4.tar.gz
use heredoc
Diffstat (limited to 'utils')
-rw-r--r--utils/runghc/runghc.cabal.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/runghc/runghc.cabal.in b/utils/runghc/runghc.cabal.in
index defb5118c3..cf0d085a34 100644
--- a/utils/runghc/runghc.cabal.in
+++ b/utils/runghc/runghc.cabal.in
@@ -11,9 +11,10 @@ Description:
to be used as a UNIX-style script interpreter. For instance,
.
@
- $ cat Hi.hs
- \#!/usr/bin/env runghc
- main = putStrLn "hello!"
+ $ cat <<EOF > Hi.hs
+ > \#!/usr/bin/env runghc
+ > main = putStrLn "hello!"
+ > EOF
$ chmod u+x Hi.hs
$ ./Hi.hs
hello!