Skip to content

Commit

Permalink
Fix hlint error in README.md (#209)
Browse files Browse the repository at this point in the history
The Haskell linter hlint is complaining about:
"Warning: Redundant do
Found:
  do get "/:word" $"

"Why not:
  get "/:word" $"

Since many editors have linting capabilities enable by default nowadays, it might be a good choice to follow the linting rules in the simple example, it also avoids confusion for Haskell beginners.
  • Loading branch information
madnight authored and RyanGlScott committed Sep 24, 2017
1 parent 3083cf5 commit 94a6903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@ import Web.Scotty

import Data.Monoid (mconcat)

main = scotty 3000 $ do
main = scotty 3000 $
get "/:word" $ do
beam <- param "word"
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
Expand Down

0 comments on commit 94a6903

Please sign in to comment.