mintty 0.1.1 → 0.1.2
raw patch · 3 files changed
+24/−10 lines, 3 filesdep ~Win32PVP ok
version bump matches the API change (PVP)
Dependency ranges changed: Win32
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−2
- mintty.cabal +15/−6
- src/System/Console/MinTTY.hs +2/−2
CHANGELOG.md view
@@ -1,7 +1,12 @@-### 0.1.1 [2017-03-17]+### 0.1.2 [2018.05.07]+* Only use the `Win32`-provided version of `isMinTTY` if building against+ `Win32-2.5.3` to be certain that one avoids Trac #13431.+* Don't enable `Safe` on GHC 7.2.++### 0.1.1 [2017.03.17] * Work around a serious bug on 32-bit Windows GHC that causes linker errors when mintty is used together with code that uses certain `msvcrt` functions, such as `atan` -## 0.1 [2017-01-30]+## 0.1 [2017.01.30] * Initial release
mintty.cabal view
@@ -1,5 +1,5 @@ name: mintty-version: 0.1.1+version: 0.1.2 synopsis: A reliable way to detect the presence of a MinTTY console on Windows description: MinTTY is a Windows-specific terminal emulator for the widely used Cygwin and MSYS projects, which provide@@ -30,13 +30,22 @@ build-type: Simple extra-source-files: CHANGELOG.md, README.md, include/*.h cabal-version: >=1.10+tested-with: GHC == 7.0.4+ , GHC == 7.2.2+ , GHC == 7.4.2+ , GHC == 7.6.3+ , GHC == 7.8.4+ , GHC == 7.10.3+ , GHC == 8.0.2+ , GHC == 8.2.2+ , GHC == 8.4.2 source-repository head type: git location: https://github.com/RyanGlScott/mintty -flag Win32-2-5- description: Use Win32-2.5.0.0 or later.+flag Win32-2-5-3+ description: Use Win32-2.5.3.0 or later. default: True library@@ -46,11 +55,11 @@ if os(windows) cpp-options: "-DWINDOWS" - if flag(Win32-2-5)- build-depends: Win32 >= 2.5+ if flag(Win32-2-5-3)+ build-depends: Win32 >= 2.5.3 else build-depends: filepath- , Win32 < 2.5+ , Win32 < 2.5.3 build-tools: hsc2hs include-dirs: include includes: windows_cconv.h, winternl_compat.h
src/System/Console/MinTTY.hs view
@@ -1,6 +1,6 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 704 {-# LANGUAGE Safe #-} #endif @@ -21,7 +21,7 @@ #if defined(WINDOWS) import System.Win32.Types (HANDLE) -# if MIN_VERSION_Win32(2,5,0)+# if MIN_VERSION_Win32(2,5,3) import qualified System.Win32.MinTTY as Win32 (isMinTTY, isMinTTYHandle) # else -- NB: This is the backported definition local to this package, which we only