I am trying to add a string to the end of a string in Haskell.
albumStr = ""
main = do
let albumStr = albumStr ++ "nothing"
print albumStr
Whenever i run this it just gets stuck on " in the console and i have to terminate it.
Why? and how do i add a string to another string in this way?
Edit: How do i add multiple strings to the end of a current string without overwritting it.
Thanks
let str = str ++ "nothing", Haskell reads that as "Construct a new value calledstr, which has the property thatstr = str ++ "nothing"," in other words a never-ending recursive computation.