{-|
Module: Spec.Data.TaggedSpec
Copyright: (C) 2014-2016 Ryan Scott
License: BSD-style (see the file LICENSE)
Maintainer: Ryan Scott
Stability: Provisional
Portability: GHC
@hspec@ tests for 'Tagged' values.
-}
module Spec.Data.TaggedSpec (main, spec) where
import Data.Tagged (Tagged)
import Instances.Data.Tagged ()
import Spec.Utils (prop_matchesTextShow)
import Test.Hspec (Spec, describe, hspec, parallel)
import Test.Hspec.QuickCheck (prop)
import TextShow.Data.Tagged ()
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel . describe "Tagged Char Int" $
prop "TextShow instance" (prop_matchesTextShow :: Int -> Tagged Char Int -> Bool)