Compare commits
No commits in common. "9b7a19f4d2507ba7c026c1a70b885f18c26ebd8c" and "cf855b9beffae678cf3820183b2554f7fed522d3" have entirely different histories.
9b7a19f4d2
...
cf855b9bef
@ -7,13 +7,8 @@ This project is my attempt to learn the Haskell programming language and build a
|
|||||||
* `cabal init`
|
* `cabal init`
|
||||||
* `cabal run`
|
* `cabal run`
|
||||||
* `cabal build`
|
* `cabal build`
|
||||||
* `cabal freeze`
|
|
||||||
* `cabal install --only-dependancies`
|
* `cabal install --only-dependancies`
|
||||||
|
|
||||||
### Packages
|
|
||||||
|
|
||||||
* [Scotty](https://hackage.haskell.org/package/scotty)
|
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* [adit.io - Making A Website With Haskell](https://www.adit.io/posts/2013-04-15-making-a-website-with-haskell.html)
|
* [adit.io - Making A Website With Haskell](https://www.adit.io/posts/2013-04-15-making-a-website-with-haskell.html)
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
module Main where
|
||||||
|
|
||||||
import Web.Scotty
|
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = scotty 3000 $
|
main = putStrLn "Hello, Haskell!"
|
||||||
get "/:word" $ do
|
|
||||||
beam <- pathParam "word"
|
|
||||||
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
|
|
||||||
|
|||||||
@ -68,9 +68,7 @@ executable portfolio-haskell
|
|||||||
-- other-extensions:
|
-- other-extensions:
|
||||||
|
|
||||||
-- Other library packages from which modules are imported.
|
-- Other library packages from which modules are imported.
|
||||||
build-depends: base ^>=4.17.2.1 && <5
|
build-depends: base ^>=4.17.2.1
|
||||||
, scotty >= 0.22 && < 0.23
|
|
||||||
, text
|
|
||||||
|
|
||||||
-- Directories containing source files.
|
-- Directories containing source files.
|
||||||
hs-source-dirs: app
|
hs-source-dirs: app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user