@@ -1,4 +1,4 @@
1−{-# LANGUAGE BangPatterns, Rank2Types #-}
1+{-# LANGUAGE BangPatterns, CPP, Rank2Types #-}
22{-# OPTIONS_GHC -fno-warn-orphans #-}
33
44-- |
@@ -167,7 +167,9 @@ import Prelude (Char, Bool(..), Functor(..), Int, Maybe(..), String,
167167 Read(..), Show(..),
168168 (&&), (||), (+), (-), (.), ($), (>>), (*),
169169 div, not, return, otherwise)
170+#if defined(HAVE_DEEPSEQ)
170171import Control.DeepSeq (NFData)
172+#endif
171173import Control.Exception (assert)
172174import Data.Char (isSpace)
173175import Control.Monad (foldM)
@@ -215,7 +217,9 @@ instance Monoid Text where
215217instance IsString Text where
216218 fromString = pack
217219
220+#if defined(HAVE_DEEPSEQ)
218221instance NFData Text
222+#endif
219223
220224-- -----------------------------------------------------------------------------
221225-- * Conversion to/from 'Text'