From 6852165294cc69cb5e2805683c20ac9f7a4ba994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hr=C4=8Dek?= Date: Sat, 2 Nov 2024 15:04:03 +0100 Subject: [PATCH 1/2] Remove no longer relevant comment from example --- docs/examples/index.html | 7 +++---- examples/09-processes.hell | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/examples/index.html b/docs/examples/index.html index ae77a1f..62bd3b2 100644 --- a/docs/examples/index.html +++ b/docs/examples/index.html @@ -94,10 +94,9 @@

09-processes.hell


   Process.runProcess_ (Process.proc "echo" ["Hello, World!"])
 
-  -- Explicit type signature, but you don't need this. Just for demo'ing.
-  let config = Process.proc "false" []
-  code <- Process.runProcess config
-  Text.putStrLn "Done."
+ let config = Process.proc "false" [] + code <- Process.runProcess config + Text.putStrLn "Done."

10-current-directory.hell

main = do
   dir <- Directory.getCurrentDirectory
diff --git a/examples/09-processes.hell b/examples/09-processes.hell
index 7ae54bd..e029a29 100644
--- a/examples/09-processes.hell
+++ b/examples/09-processes.hell
@@ -12,7 +12,6 @@ main = do
 
   Process.runProcess_ (Process.proc "echo" ["Hello, World!"])
 
-  -- Explicit type signature, but you don't need this. Just for demo'ing.
   let config = Process.proc "false" []
   code <- Process.runProcess config
   Text.putStrLn "Done."

From 0be1b47fbfb326e59f2bae3b431f18b2717da2c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Hr=C4=8Dek?= 
Date: Sat, 2 Nov 2024 15:11:37 +0100
Subject: [PATCH 2/2] Fix grammar

---
 docs/index.html | 2 +-
 src/Hell.hs     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/index.html b/docs/index.html
index e9192bb..7ce6276 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -125,7 +125,7 @@ 

Hell: Shell scripting Haskell dialect

  • It supports basic type-classes (Eq, Ord, Show, Monad), which are needed for e.g. List.lookup and familiar equality things.
  • It does not support polytypes.
  • -
  • It use all the same names for things (List.lookup, Monad.forM, +
  • It uses all the same names for things (List.lookup, Monad.forM, Async.race, etc.) that are already used in Haskell.
  • diff --git a/src/Hell.hs b/src/Hell.hs index 6362e02..8799cf4 100644 --- a/src/Hell.hs +++ b/src/Hell.hs @@ -1583,7 +1583,7 @@ parseFile filePath = do HSE.ParseOk binds -> Right binds -- This should be quite efficient because it's essentially a pointer --- increase. It leaves the \n so that line numbers are in tact. +-- increase. It leaves the \n so that line numbers are intact. dropShebang :: Text -> Text dropShebang t = Maybe.fromMaybe t do rest <- Text.stripPrefix "#!" t