File: OrphansSpec.hs

package info (click to toggle)
haskell-base-orphans 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 188 kB
  • sloc: haskell: 1,688; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Control.Exception.OrphansSpec (main, spec) where

import Test.Hspec
import Control.Exception
import Data.Orphans ()

main :: IO ()
main = hspec spec

spec :: Spec
spec = do
  describe "ErrorCall" $ do
    it "has an Eq instance" $ do
      ErrorCall "foo" `shouldBe` ErrorCall "foo"

    it "has an Ord instance" $ do
      ErrorCall "foo" `shouldSatisfy` (> ErrorCall "bar")