Skip to content
Snippets Groups Projects
Commit 677d7900 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

[project @ 2000-04-21 15:07:45 by simonpj]

Add loop test
parent 0666c3bb
No related merge requests found
{-# OPTIONS -O #-}
module Simpl006Help( forever ) where
forever c = sequence_ (repeat c)
-- !!! This one sent 4.06 into an infinite loop
-- But it worked ok if Simpl006Help.forever is
-- defined in this module. I have no idea why!
{-# OPTIONS -O #-}
module ShouldCompile where
import Concurrent
import Simpl006Help
after :: Int -> IO a -> IO a
after d c = c
every :: Int -> IO a -> IO ()
every d c = forever (after d c)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment