[Git][ghc/ghc][master] 3 commits: example rewrite

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Mon Oct 17 23:22:49 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
abb82f38 by Eric Lindblad at 2022-10-17T19:22:33-04:00
example rewrite
- - - - -
39beb801 by Eric Lindblad at 2022-10-17T19:22:33-04:00
remove redirect
- - - - -
0d9fb651 by Eric Lindblad at 2022-10-17T19:22:33-04:00
use heredoc
- - - - -


2 changed files:

- utils/runghc/Main.hs
- utils/runghc/runghc.cabal.in


Changes:

=====================================
utils/runghc/Main.hs
=====================================
@@ -6,9 +6,9 @@
 --
 -- runghc program, for invoking from a #! line in a script.  For example:
 --
---   script.lhs:
+--   script.hs:
 --      #!/usr/bin/env runghc
---      > main = putStrLn "hello!"
+--      main = putStrLn "hello!"
 --
 -- runghc accepts one flag:
 --


=====================================
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!



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ff6275ef829873a70350c6d597e485bb84dd1bb1...0d9fb651768f0b88be0a564deebbbd2391104ab4

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ff6275ef829873a70350c6d597e485bb84dd1bb1...0d9fb651768f0b88be0a564deebbbd2391104ab4
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221017/c9621c64/attachment-0001.html>


More information about the ghc-commits mailing list