1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeOperators #-}
{-|
Module: Spec.Data.Type.EqualitySpec
Copyright: (C) 2014-2017 Ryan Scott
License: BSD-style (see the file LICENSE)
Maintainer: Ryan Scott
Stability: Provisional
Portability: GHC
@hspec@ test for '(:~:)'.
-}
module Spec.Data.Type.EqualitySpec (main, spec) where
import Data.Proxy.Compat (Proxy(..))
import Data.Type.Equality.Compat
import Instances.Data.Type.Equality ()
import Prelude ()
import Prelude.Compat
import Test.Hspec (Spec, hspec, parallel)
import Spec.Utils (matchesTextShowSpec)
import Test.Hspec (describe)
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel $ do
describe "Int :~: Int" $
matchesTextShowSpec (Proxy :: Proxy (Int :~: Int))
# if MIN_VERSION_base(4,9,0)
describe "Int :~~: Int" $
matchesTextShowSpec (Proxy :: Proxy (Int :~~: Int))
# endif
|