¿Cómo se debe usar la función forever?

Tengo una función. Digamos que se ve así:

strangeFunc = do
  putStrLn "Welcome to the game! Please, enter the name of the file: "
 --some more code

Entonces, quiero que se ejecute para siempre, así que hago esto

strangeFunc = forever $ do
  putStrLn "Welcome to the game! Please, enter the name of the file: "
  --some more code 

Pero tengo un error:variable not in scope: forever. ¿Cómo puedo arreglarlo

Respuestas a la pregunta(1)

Su respuesta a la pregunta