File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 44--
55{-# LANGUAGE FlexibleInstances #-}
66{-# LANGUAGE DeriveFunctor #-}
7+ {-# LANGUAGE TypeApplications #-}
8+ {-# LANGUAGE ScopedTypeVariables #-}
79
810{-# OPTIONS_GHC -fno-warn-orphans #-}
911
@@ -32,6 +34,7 @@ import Control.Arrow ((***))
3234import Control.DeepSeq (NFData (.. ), deepseq )
3335import Control.Exception (bracket )
3436import Data.Char (isSpace )
37+ import Data.Coerce (coerce )
3538import Data.Text.Foreign (I8 )
3639import Data.Text.Lazy.Builder.RealFloat (FPFormat (.. ))
3740import Data.Word (Word8 , Word16 )
@@ -89,7 +92,7 @@ instance Arbitrary T.Text where
8992 shrink = map T. pack . shrink . T. unpack
9093
9194instance Arbitrary TL. Text where
92- arbitrary = ( TL. fromChunks . map notEmpty . unSqrt) `fmap` arbitrary
95+ arbitrary = TL. fromChunks <$> coerce (arbitrary @ [ Sqrt ( NotEmpty T. Text )])
9396 shrink = map TL. pack . shrink . TL. unpack
9497
9598newtype BigInt = Big Integer
You can’t perform that action at this time.
0 commit comments