1
0

Compare commits

..

No commits in common. "9b7a19f4d2507ba7c026c1a70b885f18c26ebd8c" and "cf855b9beffae678cf3820183b2554f7fed522d3" have entirely different histories.

3 changed files with 3 additions and 15 deletions

View File

@ -7,13 +7,8 @@ This project is my attempt to learn the Haskell programming language and build a
* `cabal init`
* `cabal run`
* `cabal build`
* `cabal freeze`
* `cabal install --only-dependancies`
### Packages
* [Scotty](https://hackage.haskell.org/package/scotty)
## Links
* [adit.io - Making A Website With Haskell](https://www.adit.io/posts/2013-04-15-making-a-website-with-haskell.html)

View File

@ -1,9 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
module Main where
main :: IO ()
main = scotty 3000 $
get "/:word" $ do
beam <- pathParam "word"
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
main = putStrLn "Hello, Haskell!"

View File

@ -68,9 +68,7 @@ executable portfolio-haskell
-- other-extensions:
-- Other library packages from which modules are imported.
build-depends: base ^>=4.17.2.1 && <5
, scotty >= 0.22 && < 0.23
, text
build-depends: base ^>=4.17.2.1
-- Directories containing source files.
hs-source-dirs: app