forked from GitHub/gf-core
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:
@@ -54,7 +54,9 @@ module Data.Binary.Builder (
|
|||||||
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
#if MIN_VERSION_base(4,8,0)
|
||||||
import Prelude hiding (empty)
|
import Prelude hiding (empty)
|
||||||
|
#endif
|
||||||
import Foreign(Word,Word8,Ptr,Storable,ForeignPtr,withForeignPtr,poke,plusPtr,sizeOf)
|
import Foreign(Word,Word8,Ptr,Storable,ForeignPtr,withForeignPtr,poke,plusPtr,sizeOf)
|
||||||
import System.IO.Unsafe(unsafePerformIO)
|
import System.IO.Unsafe(unsafePerformIO)
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
|
|||||||
@@ -5,11 +5,14 @@ In this module are implemented function that build a fst-based tokenizer
|
|||||||
from a Concrete grammar.
|
from a Concrete grammar.
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
{-# LANGUAGE CPP #-}
|
||||||
module PGF.Tokenizer
|
module PGF.Tokenizer
|
||||||
( mkTokenizer
|
( mkTokenizer
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
#if MIN_VERSION_base(4,8,0)
|
||||||
import Prelude hiding ((<*>))
|
import Prelude hiding ((<*>))
|
||||||
|
#endif
|
||||||
--import Data.List (intercalate)
|
--import Data.List (intercalate)
|
||||||
--import Test.QuickCheck
|
--import Test.QuickCheck
|
||||||
import FST.TransducerInterface
|
import FST.TransducerInterface
|
||||||
|
|||||||
Reference in New Issue
Block a user