Created and added stack.yaml and .gitignore files. Relaxed the version dependency on 'binary' package in cabal file. Is that OK? Also brought the minimum cabal version to >=1.8, so I could add a test target that pulls in the library. Changed all tabs to spaces - I don't know when the Haskell compiler started giving warnings about that.
19 lines
418 B
Haskell
19 lines
418 B
Haskell
import Control.Monad
|
|
import Test.HUnit
|
|
import Test.Tests
|
|
|
|
hunitTests =
|
|
[ ("utf8Tests", utf8Tests)
|
|
, ("utf16Tests", utf16Tests)
|
|
, ("punycodeTests", punycodeTests)
|
|
, ("isoTests", isoTests)
|
|
, ("jisTests", jisTests)
|
|
, ("gb18030Tests", gb18030Tests)
|
|
]
|
|
|
|
main = do
|
|
identityTests
|
|
forM_ hunitTests $ \(name, test) -> do
|
|
putStrLn $ "running " ++ name
|
|
runTestTT test >>= print
|