File: DocTest.hs

package info (click to toggle)
haskell-foundation 0.0.30-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 928 kB
  • sloc: haskell: 9,124; ansic: 570; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (5)
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
module Main where

import Test.DocTest
import Prelude

main :: IO ()
main = doctest (extensions ++ flags ++ files)

extensions :: [String]
extensions =
  [ "-XBangPatterns"
  , "-XDeriveDataTypeable"
  , "-XNoImplicitPrelude"
  , "-XRebindableSyntax"
  , "-XOverloadedStrings"
  , "-XTypeFamilies"
  ]

flags :: [String]
flags = ["-fobject-code"]

-- Would be nice to just use "src" here, but both Basement.String and
-- Foundation.String.UTF8LL share the same module name, and doctest breaks.
files :: [String]
files =
  [ "Foundation/Collection/Buildable.hs"
  , "Foundation/VFS/FilePath.hs"
  , "Foundation/VFS/Path.hs"
  ]