Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/env stack
  2. -- stack --resolver lts-9.5 script --package scotty
  3.  
  4. {-# LANGUAGE OverloadedStrings #-}
  5.  
  6. import Web.Scotty
  7.  
  8. import Data.Monoid (mconcat)
  9.  
  10. main = scotty 3000 $ do
  11. get "/:word" $ do
  12. beam <- param "word"
  13. html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement