Skip to content

Commit 8320fca

Browse files
committed
alternative: build and run with cabal
1 parent 33f03ca commit 8320fca

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

WebScraping/HandsomeSoupTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Text.HandsomeSoup
1111

1212
main :: IO ()
1313
main = do
14-
let doc = fromUrl "http://markwatson.com/"
14+
let doc = fromUrl "https://markwatson.com/"
1515
putStrLn "\n\n ** LINKS:\n"
1616
links <- runX $ doc >>> css "a" ! "href"
1717
mapM_ putStrLn links

WebScraping/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# HTTP Client Example
22

3-
## Run examples
3+
## Run examples using stack
44

55
````````
66
stack build --exec HttpClientExample
77
stack build --exec HandsomeSoupTest
88
````````
99

10+
## Run examples using cabal:
11+
12+
````````
13+
cabal build
14+
cabal run HandsomeSoupTest
15+
````````
16+

0 commit comments

Comments
 (0)