homepage: https://github.com/Bodigrim/tasty-inspection-testing
changelog-type: markdown
hash: 9c5e76345168fd3a59b43d305eebf8df3c792ce324c66bbdee45b54aa7d2c0ad
test-bench-deps: {}
maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
synopsis: Inspection testing support for tasty
changelog: |
  # 0.1

  * Initial release.
basic-deps:
  ghc: -any
  base: <5
  inspection-testing: '>=0.4.5 && <0.5'
  tasty: -any
  template-haskell: -any
all-versions:
- '0.1'
author: ''
latest: '0.1'
description-type: markdown
description: |
  # tasty-inspection-tasting

  Integrate [`inspection-testing`](http://hackage.haskell.org/package/inspection-testing)
  into [`tasty`](http://hackage.haskell.org/package/tasty) test suites.

  ```haskell
  {-# LANGUAGE TemplateHaskell #-}
  {-# OPTIONS_GHC -O -dsuppress-all -dno-suppress-type-signatures -fplugin=Test.Tasty.Inspection.Plugin #-}

  import Test.Tasty
  import Test.Tasty.Inspection

  lhs :: (a -> b) -> Maybe a -> Bool
  lhs f x = case fmap f x of
    Nothing -> True
    Just{}  -> False

  rhs :: (a -> b) -> Maybe a -> Bool
  rhs _ Nothing = True
  rhs _ Just{}  = False

  main :: IO ()
  main = defaultMain $(inspectTest $ 'lhs === 'rhs)
  ```
license-name: MIT

Update from Hackage at 2021-05-06T19:45:19Z
Update from Hackage at 2021-05-06T19:45:19Z
