Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial changes #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/HL/View/Home/Features.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ purefunc =
p_ [class_ "expand"] (a_ "Click to expand")
div_ [class_ "expandable"] $ do
p_ (do "The following function takes an integer and returns an integer. "
"By the type it cannot do any side-effects whatsoever, it cannot\
"By the type it cannot perform any side-effects whatsoever, it cannot\
\ mutate any of its arguments.")
haskellPre "square :: Int -> Int\n\
\square x = x * x"
Expand Down Expand Up @@ -80,8 +80,10 @@ statically =
concurrent :: Html ()
concurrent =
do h2_ "Concurrent"
p_ "Haskell lends itself well to concurrent programming due to its explicit \
\handling of effects. Its flagship compiler, GHC, comes with a high-\
p_ "Effects such as IO and mutation are made explicit in Haskell\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space before \ here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite probably, I wasn't able to test the changes before sending the pull request and probably missed that one because it was the first thing I changed. I can make the change and resubmit if you like.

\making concurrent programming much easier to think about than most languages; \
\the type of a piece of code tells you whether it is safe to run concurrently \
\with other code. Its flagship compiler, GHC, comes with a high-\
\performance parallel garbage collector and light-weight concurrency \
\library containing a number of useful concurrency primitives and \
\abstractions."
Expand Down Expand Up @@ -153,11 +155,11 @@ inference =
lazy :: Html ()
lazy =
do h2_ "Lazy"
p_ "Functions don't evaluate their arguments. This means that programs \
\can compose together very well, with the ability to write control \
\constructs (such as if/else) just by writing normal functions. The purity \
\of Haskell code makes it easy to fuse chains of functions together, allowing \
\for performance benefits."
p_ "Functions don't evaluate their arguments unless they need to. \
\This means that programs can compose together easily, with the ability to \
\write control constructs (such as if/else) just by writing normal functions. \
\The purity of Haskell code makes it easy to fuse chains of functions together, \
\allowing for performance benefits."
p_ [class_ "expand"] $ a_ "Click to expand"
div_ [class_ "expandable"] $ do
p_ "Define control structures easily:"
Expand Down Expand Up @@ -253,7 +255,7 @@ packages =
,("pipes" , "Streaming IO")
,("aeson" , "JSON parser/printer")
,("process" , "Launch processes")
,("syb" , "Generic prog.")
,("syb" , "Generic programming")
,("dlist" , "Difflists")]

alternating :: [t] -> [(t, t)]
Expand Down