File: DocTests.hs

package info (click to toggle)
haskell-dimensional 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: haskell: 2,370; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}

module Main (main) where

import System.FilePath.Glob (glob)
import Test.DocTest (doctest)

#if MIN_VERSION_base(4,12,0)
doctestFlags = ["-XNoStarIsType"]
#else
doctestFlags = []
#endif

main :: IO ()
main = glob "src/**/*.hs" >>= (doctest . (doctestFlags++))