Skip to content

Commit 32ea5d4

Browse files
Fix formatting and reword paragraph for clarity (#116)
1 parent deda406 commit 32ea5d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

markdown/source_md/input-and-output.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,8 @@ palindrome
882882
palindrome
883883
```
884884

885-
Again, we get the same output as if we had run our program and put in the words ourselves at the standard input.
886-
We just don't see the input that `palindromes.hs` because the input came from the file and not from us typing the words in.
885+
Again, we get the same output as if we had run the program and typed the words ourselves at standard input.
886+
The difference is that we dont see the input, because it was provided to `palindromes.hs` from a file rather than entered directly at the keyboard.
887887

888888
So now you probably see how lazy I/O works and how we can use it to our advantage.
889889
You can just think in terms of what the output is supposed to be for some given input and write a function to do that transformation.
@@ -1275,9 +1275,9 @@ Here's a small program that demonstrates how these two work:
12751275

12761276
```{.haskell:hs}
12771277
import System.Environment
1278-
import Data.List
1278+
import Data.List
12791279
1280-
main = do
1280+
main = do
12811281
args <- getArgs
12821282
progName <- getProgName
12831283
putStrLn "The arguments are:"

0 commit comments

Comments
 (0)