• + 0 comments

    Yes, hello_worlds 1 = putStrLn "Hello World" is pattern matching. When the hello_words function is called with input 1, that is the executed line. However, in Haskell, the base of recursions are often expressed with a pattern match, so I think is fair to also say it's a stop condition.