File: Inspect.hs

package info (click to toggle)
haskell-vector 0.13.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 996 kB
  • sloc: haskell: 11,004; ansic: 6; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fplugin=Test.Tasty.Inspection.Plugin #-}
{-# OPTIONS_GHC -dsuppress-all                        #-}
{-# OPTIONS_GHC -dno-suppress-type-signatures         #-}
-- | Most basic inspection tests
module Inspect where

import Test.Tasty
import Test.Tasty.Inspection
import qualified Data.Vector as V

simple_fusion :: Int -> Int
simple_fusion n = V.sum $ V.generate n id


tests :: TestTree
tests = testGroup "inspection"
  [ $(inspectObligations [(`hasNoType` ''V.Vector), hasNoTypeClasses] 'simple_fusion)
  ]