Restore compatibility with ghc-7.4

With ghc-7.4 'import M hiding (x)' causes an error if M does not export x...
This commit is contained in:
hallgren
2015-02-16 15:41:38 +00:00
parent 2ce3e954fd
commit 1dbe588497
2 changed files with 5 additions and 0 deletions

View File

@@ -54,7 +54,9 @@ module Data.Binary.Builder (
) where
#if MIN_VERSION_base(4,8,0)
import Prelude hiding (empty)
#endif
import Foreign(Word,Word8,Ptr,Storable,ForeignPtr,withForeignPtr,poke,plusPtr,sizeOf)
import System.IO.Unsafe(unsafePerformIO)
import Data.Monoid

View File

@@ -5,11 +5,14 @@ In this module are implemented function that build a fst-based tokenizer
from a Concrete grammar.
-}
{-# LANGUAGE CPP #-}
module PGF.Tokenizer
( mkTokenizer
) where
#if MIN_VERSION_base(4,8,0)
import Prelude hiding ((<*>))
#endif
--import Data.List (intercalate)
--import Test.QuickCheck
import FST.TransducerInterface