33#if __GLASGOW_HASKELL__ >= 908
44{-# OPTIONS_GHC -Wno-x-partial #-}
55#endif
6- module Streamly.Test.Data.Parser.Common (main ) where
6+ module Streamly.Test.Data.ParserCommon (main ) where
77
88import Control.Applicative ((<|>) )
99import Control.Exception (displayException , try , evaluate , SomeException )
@@ -16,7 +16,7 @@ import Test.QuickCheck
1616 vectorOf , Gen , (.&&.) , ioProperty )
1717import Test.QuickCheck.Monadic (monadicIO , assert , run , PropertyM )
1818
19- import Prelude hiding (sequence )
19+ import Prelude hiding (sequence , take , takeWhile )
2020
2121import qualified Control.Monad.Fail as Fail
2222import qualified Data.List as List
@@ -1167,18 +1167,18 @@ mainCommon ptt = do
11671167 $ runParserTC_temp ptt takeBetweenPass
11681168 prop (" P.takeBetween = Prelude.take when len >= m and len <= n and fail"
11691169 ++ " otherwise fail" ) $ runParserTC_temp ptt takeBetween
1170- prop " P.take = Prelude.take" $ runParserTC_temp ptt Streamly.Test.Data.Parser.Common. take
1170+ prop " P.take = Prelude.take" $ runParserTC_temp ptt take
11711171 prop " P.takeEQ = Prelude.take when len >= n" $ runParserTC_temp ptt takeEQPass
11721172 prop " P.takeEQ = Prelude.take when len >= n and fail otherwise"
1173- $ runParserTC_temp ptt Streamly.Test.Data.Parser.Common. takeEQ
1173+ $ runParserTC_temp ptt takeEQ
11741174 prop " P.takeGE n ls = ls when len >= n" $ runParserTC_temp ptt takeGEPass
1175- prop " P.takeGE n ls = ls when len >= n and fail otherwise" $ runParserTC_temp ptt Streamly.Test.Data.Parser.Common. takeGE
1175+ prop " P.takeGE n ls = ls when len >= n and fail otherwise" $ runParserTC_temp ptt takeGE
11761176 prop " lookAhead . take n >> lookAhead . take n = lookAhead . take n" $ runParserTC_temp ptt lookAheadPass
11771177 -- prop "Fail when stream length exceeded" lookAheadFail
11781178 prop " lookAhead . take n >> lookAhead . take n = lookAhead . take n, else fail" $ runParserTC_temp ptt lookAhead
11791179 prop (" P.takeStartBy pred = head : Prelude.takeWhile (not . pred)"
11801180 ++ " tail" ) $ runParserTC ptt takeStartBy
1181- prop " P.takeWhile = Prelude.takeWhile" $ runParserTC ptt Streamly.Test.Data.Parser.Common. takeWhile
1181+ prop " P.takeWhile = Prelude.takeWhile" $ runParserTC ptt takeWhile
11821182 prop (" P.takeWhile1 = Prelude.takeWhile if taken something,"
11831183 ++ " else check why failed" ) $ runParserTC ptt takeWhile1
11841184 prop " takeWhileP prd P.take = takeWhileMaxLen prd" $ runParserTC ptt takeWhileP
0 commit comments