git.iko.soy/haskell-generate
on 7a22a59 help sign in
.travis.yml+1−1
since splitsnapshots
unifiedsplit
@@ -22,5 +22,5 @@ script:
22
22
23matrix:
23matrix:
24 allow_failures:
24 allow_failures:
25− - env: GHCVER=head CABALVER=1.22
25+ - env: GHCVER=head CABALVER=1.20
26 fast_finish: true
26 fast_finish: true
haskell-generate.cabal+4−3
@@ -1,5 +1,5 @@
1name: haskell-generate
1name: haskell-generate
2−version: 0.2.4
2+version: 0.2.3
3license: BSD3
3license: BSD3
4category: Code Generation, Language
4category: Code Generation, Language
5cabal-version: >= 1.10
5cabal-version: >= 1.10
@@ -13,8 +13,7 @@ copyright: Copyright (C) 2013-2015 Benno Fünfstück
13synopsis: Typesafe generation of haskell source code
13synopsis: Typesafe generation of haskell source code
14description:
14description:
15 This library provides an interface to generate haskell source code, verifying at compile time
15 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
18 introduction explaining how to use the library.
17 introduction explaining how to use the library.
19build-type: Custom
18build-type: Custom
20
19
@@ -57,4 +56,6 @@ test-suite doctests
57 , doctest >= 0.9.1
56 , doctest >= 0.9.1
58 , filepath
57 , filepath
59 ghc-options: -Wall -threaded
58 ghc-options: -Wall -threaded
59+ if impl(ghc<7.6.1)
60+ ghc-options: -Werror
60 hs-source-dirs: tests
61 hs-source-dirs: tests
tests/doctests.hsc+2−1
@@ -20,17 +20,18 @@ import Data.List
20import System.Directory
20import System.Directory
21import System.FilePath
21import System.FilePath
22import Test.DocTest
22import Test.DocTest
23−import Prelude
24
23
25##ifdef mingw32_HOST_ARCH
24##ifdef mingw32_HOST_ARCH
26##ifdef i386_HOST_ARCH
25##ifdef i386_HOST_ARCH
27##define USE_CP
26##define USE_CP
27+import Control.Applicative
28import Control.Exception
28import Control.Exception
29import Foreign.C.Types
29import Foreign.C.Types
30foreign import stdcall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool
30foreign import stdcall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool
31foreign import stdcall "windows.h GetConsoleCP" c_GetConsoleCP :: IO CUInt
31foreign import stdcall "windows.h GetConsoleCP" c_GetConsoleCP :: IO CUInt
32##elif defined(x86_64_HOST_ARCH)
32##elif defined(x86_64_HOST_ARCH)
33##define USE_CP
33##define USE_CP
34+import Control.Applicative
34import Control.Exception
35import Control.Exception
35import Foreign.C.Types
36import Foreign.C.Types
36foreign import ccall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool
37foreign import ccall "windows.h SetConsoleCP" c_SetConsoleCP :: CUInt -> IO Bool