git.iko.soy/haskell-generate
on master help sign in
3 files changed+4−6
since splitsnapshots
unifiedsplit
.travis.yml+1−1 haskell-generate.cabal+2−3 tests/doctests.hsc+1−2
.travis.yml+1−1
@@ -22,5 +22,5 @@ script:
2222
2323matrix:
2424 allow_failures:
25− - env: GHCVER=head CABALVER=1.20
25+ - env: GHCVER=head CABALVER=1.22
2626 fast_finish: true
haskell-generate.cabal+2−3
@@ -13,7 +13,8 @@ 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. See https://github.com/bennofs/haskell-generate for an
16+ that the resulting code typechecks.
17+ See <https://github.com/bennofs/haskell-generate haskell-generate> for an
1718 introduction explaining how to use the library.
1819build-type: Custom
1920
@@ -56,6 +57,4 @@ test-suite doctests
5657 , doctest >= 0.9.1
5758 , filepath
5859 ghc-options: -Wall -threaded
59− if impl(ghc<7.6.1)
60− ghc-options: -Werror
6160 hs-source-dirs: tests
tests/doctests.hsc+1−2
@@ -20,18 +20,17 @@ import Data.List
2020import System.Directory
2121import System.FilePath
2222import Test.DocTest
23+import Prelude
2324
2425##ifdef mingw32_HOST_ARCH
2526##ifdef i386_HOST_ARCH
2627##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
3534import Control.Exception
3635import Foreign.C.Types
3736foreign import ccall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool