Adding Haskell examples (#17)

* Adding binary search example for Haskell

* Adding selection sort example in Haskell

* Adding Haskell examples for chapter 3

* Adding examples for chapter 4

* Adding examples for chapter 5

* Adding git ignore

* Add Haskell example for BFS
This commit is contained in:
Bijoy Thomas
2017-06-11 18:12:48 -05:00
committed by Aditya Bhargava
parent c5c2563d05
commit 6f78bdf3d7
13 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
greet2 name = putStrLn ("how are you, " ++ name ++ "?")
bye = putStrLn "ok bye!"
greet name = do
putStrLn ("hello " ++ name)
greet2 name
putStrLn "getting ready to say bye..."
bye
main = greet "adit"