packages feed

text-show-0.8: tests/Instances/Data/Version.hs

{-# OPTIONS_GHC -fno-warn-orphans #-}

{-|
Module:      Instances.Data.Version
Copyright:   (C) 2014-2015 Ryan Scott
License:     BSD-style (see the file LICENSE)
Maintainer:  Ryan Scott
Stability:   Experimental
Portability: GHC

'Arbitrary' instance for 'Version'.
-}
module Instances.Data.Version () where

import Data.Version (Version(..))

import Prelude ()
import Prelude.Compat

import Test.QuickCheck (Arbitrary(..))

instance Arbitrary Version where
    arbitrary = Version <$> arbitrary <*> arbitrary