packages feed

hgeometry-combinatorial-0.10.0.0 / doctests.hs

import Test.DocTestmain :: IO ()main = doctest $ ["-isrc" ] ++ ghcExts ++ filesghcExts :: [String]ghcExts = map ("-X" ++)          [ "TypeFamilies"          , "GADTs"          , "KindSignatures"          , "DataKinds"          , "TypeOperators"          , "ConstraintKinds"          , "PolyKinds"          , "RankNTypes"          , "TypeApplications"          , "ScopedTypeVariables"          , "PatternSynonyms"          , "ViewPatterns"          , "TupleSections"          , "MultiParamTypeClasses"          , "LambdaCase"          , "TupleSections"          , "StandaloneDeriving"          , "GeneralizedNewtypeDeriving"          , "DeriveFunctor"          , "DeriveFoldable"          , "DeriveTraversable"          , "AutoDeriveTypeable"          , "DeriveGeneric"          , "FlexibleInstances"          , "FlexibleContexts"          ]files :: [String]files = map toFile modulestoFile :: String -> StringtoFile = (\s -> "src/" <> s <> ".hs") . replace '.' '/'replace     :: Eq a => a -> a -> [a] -> [a]replace a b = go  where    go []                 = []    go (c:cs) | c == a    = b:go cs              | otherwise = c:go csmodules :: [String]modules =  [ "Data.Range"  , "Data.CircularList.Util"  , "Data.Permutation"  , "Data.CircularSeq"  , "Data.LSeq"  , "Data.PlanarGraph"  , "Data.PlanarGraph.Dart"  , "Data.PlanarGraph.Core"  , "Data.Tree.Util"  , "Data.Set.Util"  ]