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 4
4
--
5
5
{-# LANGUAGE FlexibleInstances #-}
6
6
{-# LANGUAGE DeriveFunctor #-}
7
+ {-# LANGUAGE TypeApplications #-}
8
+ {-# LANGUAGE ScopedTypeVariables #-}
7
9
8
10
{-# OPTIONS_GHC -fno-warn-orphans #-}
9
11
@@ -32,6 +34,7 @@ import Control.Arrow ((***))
32
34
import Control.DeepSeq (NFData (.. ), deepseq )
33
35
import Control.Exception (bracket )
34
36
import Data.Char (isSpace )
37
+ import Data.Coerce (coerce )
35
38
import Data.Text.Foreign (I8 )
36
39
import Data.Text.Lazy.Builder.RealFloat (FPFormat (.. ))
37
40
import Data.Word (Word8 , Word16 )
@@ -89,7 +92,7 @@ instance Arbitrary T.Text where
89
92
shrink = map T. pack . shrink . T. unpack
90
93
91
94
instance Arbitrary TL. Text where
92
- arbitrary = ( TL. fromChunks . map notEmpty . unSqrt) `fmap` arbitrary
95
+ arbitrary = TL. fromChunks <$> coerce (arbitrary @ ( Sqrt [ NotEmpty T. Text ]))
93
96
shrink = map TL. pack . shrink . TL. unpack
94
97
95
98
newtype BigInt = Big Integer
You can’t perform that action at this time.
0 commit comments