Does Haskell require a garbage collector?
As others have already pointed out, Haskell requires automatic, dynamic memory management: automatic memory management is necessary because manual memory management is unsafe; dynamic memory management is necessary because for some programs, the lifetime of an object can only be determined at runtime. For example, consider the following program: main = loop (Just [1..1000]) where … Read more