text-show-instances-0.2: tests/Instances/Data/String/UTF8.hs
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-|
Module: Instances.Data.String.UTF8
Copyright: (C) 2014-2015 Ryan Scott
License: BSD-style (see the file LICENSE)
Maintainer: Ryan Scott
Stability: Experimental
Portability: GHC
Provides an 'Arbitrary' instance for 'UTF8' strings.
-}
module Instances.Data.String.UTF8 () where
import Data.Functor ((<$>))
import Data.String.UTF8 (UTF8, fromRep)
import Test.Tasty.QuickCheck (Arbitrary(..))
instance Arbitrary a => Arbitrary (UTF8 a) where
arbitrary = fromRep <$> arbitrary