From 2ebff97f8efea061ec2c51d8dd8fa19dd880243d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 14 Jan 2009 20:28:10 +0000 Subject: [PATCH] Add NoImplicitPrelude to the extensions used when building with GHC --- Data/STRef/Lazy.hs | 1 + System/Timeout.hs | 1 + base.cabal | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Data/STRef/Lazy.hs b/Data/STRef/Lazy.hs index 3218310..288343e 100644 --- a/Data/STRef/Lazy.hs +++ b/Data/STRef/Lazy.hs @@ -22,6 +22,7 @@ module Data.STRef.Lazy ( import Control.Monad.ST.Lazy import qualified Data.STRef as ST +import Prelude newSTRef :: a -> ST s (ST.STRef s a) readSTRef :: ST.STRef s a -> ST s a diff --git a/System/Timeout.hs b/System/Timeout.hs index 431f709..f27a936 100644 --- a/System/Timeout.hs +++ b/System/Timeout.hs @@ -27,6 +27,7 @@ import Control.Concurrent (forkIO, threadDelay, myThreadId, killThread) import Control.Exception (Exception, handleJust, throwTo, bracket) import Data.Typeable import Data.Unique (Unique, newUnique) +import GHC.Num -- An internal type that is thrown as a dynamic exception to -- interrupt the running IO computation when the timeout has diff --git a/base.cabal b/base.cabal index 75581aa..35b574a 100644 --- a/base.cabal +++ b/base.cabal @@ -62,7 +62,7 @@ Library { ForeignFunctionInterface, UnliftedFFITypes, DeriveDataTypeable, GeneralizedNewtypeDeriving, FlexibleInstances, StandaloneDeriving, - PatternGuards, EmptyDataDecls + PatternGuards, EmptyDataDecls, NoImplicitPrelude if impl(ghc < 6.10) -- PatternSignatures was deprecated in 6.10 -- 1.7.10.4