Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit - Removes the Quicksort code example from ABOUT.md as #686 dictates. - Adds a real-world web-server example (Scotty) within 38x9 characters. - Removes the sentence "Haskell syntax is beautiful and minimal." because it tied to the code snippet, not because it isn't true. ;-) The snippet comes from http://hackage.haskell.org/package/scotty-0.11.2
- Loading branch information
1 parent
e6ef4fe
commit d3d841e
Showing
2 changed files
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
module HelloWorld (hello) where | ||
{-# LANGUAGE OverloadedStrings #-} | ||
module Main (main) where | ||
import Web.Scotty | ||
|
||
hello :: String | ||
hello = "Hello, World!" | ||
main = scotty 3000 $ | ||
get "/:who" $ do | ||
who <- param "who" | ||
text $ | ||
"Beam " <> who <> " up, Scotty!" |