From 94a6903e6d5bb9cfd375d049ecd6f8dcc016f0a7 Mon Sep 17 00:00:00 2001 From: Fabian Beuke Date: Sun, 24 Sep 2017 15:47:36 +0200 Subject: [PATCH] Fix hlint error in README.md (#209) 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d625e0ed..d26ff595 100644 --- a/README.md +++ b/README.md @@ -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 ["

Scotty, ", beam, " me up!

"]