From 4a95633c471391748643b767225f27884b3e5ddc Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 30 Jan 2013 22:13:37 -0800 Subject: [PATCH] update haskell code for new haskel 2010 library standard --- primes.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/primes.hs b/primes.hs index e20cd13..165b9df 100644 --- a/primes.hs +++ b/primes.hs @@ -1,7 +1,8 @@ -- Haskell version of a Prime Number Finder -- haplo@mindstab.net -import System +import System.IO +import System.Environment check i c m | i > m = [(show c) ++ " "] | rem c i > 0 = check (i+2) c m