{-# LANGUAGE GeneralizedNewtypeDeriving #-} import Data.Char import System.Random import Test.QuickCheck hiding ((.&.)) newtype BigChar = Big Char deriving (Eq, Show, Random) instance Arbitrary BigChar where arbitrary = choose (Big '0', Big '\x10FFFF') shrink (Big c) = map Big (shrinkChar c) {- Write a body for shrinkChar below. Suggested pattern: 0, c * 0.5, c * 0.75, c * 0.875, ... -} shrinkChar = undefined


Char에 fractional number를 곱하는 가장 올바른 방법이 먼가요