git.iko.soy/haskell-generate
on c12833f help sign in
3 files changed+6−4
since splitsnapshots
unifiedsplit
.travis.yml+1−1 haskell-generate.cabal+3−2 tests/doctests.hsc+2−1
.travis.yml+1−1
@@ -22,5 +22,5 @@ script:
2222
2323matrix:
2424 allow_failures:
25− - env: GHCVER=head CABALVER=1.22
25+ - env: GHCVER=head CABALVER=1.20
2626 fast_finish: true
haskell-generate.cabal+3−2
@@ -13,8 +13,7 @@ copyright: Copyright (C) 2013-2015 Benno Fünfstück
1313synopsis: Typesafe generation of haskell source code
1414description:
1515 This library provides an interface to generate haskell source code, verifying at compile time
16− that the resulting code typechecks.
17− See <https://github.com/bennofs/haskell-generate haskell-generate> for an
16+ that the resulting code typechecks. See https://github.com/bennofs/haskell-generate for an
1817 introduction explaining how to use the library.
1918build-type: Custom
2019
@@ -57,4 +56,6 @@ test-suite doctests
5756 , doctest >= 0.9.1
5857 , filepath
5958 ghc-options: -Wall -threaded
59+ if impl(ghc<7.6.1)
60+ ghc-options: -Werror
6061 hs-source-dirs: tests
tests/doctests.hsc+2−1
@@ -20,17 +20,18 @@ import Data.List
2020import System.Directory
2121import System.FilePath
2222import Test.DocTest
23−import Prelude
2423
2524##ifdef mingw32_HOST_ARCH
2625##ifdef i386_HOST_ARCH
2726##define USE_CP
27+import Control.Applicative
2828import Control.Exception
2929import Foreign.C.Types
3030foreign import stdcall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool
3131foreign import stdcall "windows.h GetConsoleCP" c_GetConsoleCP :: IO CUInt
3232##elif defined(x86_64_HOST_ARCH)
3333##define USE_CP
34+import Control.Applicative
3435import Control.Exception
3536import Foreign.C.Types
3637foreign import ccall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool