THRIFT-4545: fix haskell build on windows, fix appveyor stale packages
diff --git a/build/appveyor/MSVC-appveyor-build.bat b/build/appveyor/MSVC-appveyor-build.bat
index 31aac57..a4b92a2 100644
--- a/build/appveyor/MSVC-appveyor-build.bat
+++ b/build/appveyor/MSVC-appveyor-build.bat
@@ -21,8 +21,6 @@
 MKDIR "%BUILDDIR%"                          || EXIT /B
 CD "%BUILDDIR%"                             || EXIT /B
 
-:: Haskell is disabled for cmake (Windows), see Jira THRIFT-4545
-
 @ECHO ON
   cmake "%SRCDIR%" ^
     -G"%GENERATOR%" ^
@@ -38,7 +36,6 @@
     -DOPENSSL_USE_STATIC_LIBS=OFF ^
     -DZLIB_LIBRARY="%WIN3P%\zlib-inst\lib\zlib%ZLIB_LIB_SUFFIX%.lib" ^
     -DZLIB_ROOT="%WIN3P%\zlib-inst" ^
-    -DWITH_HASKELL=OFF ^
     -DWITH_PYTHON=%WITH_PYTHON% ^
     -DWITH_%THREADMODEL%THREADS=ON ^
     -DWITH_SHARED_LIB=OFF ^
diff --git a/build/appveyor/MSVC-appveyor-install.bat b/build/appveyor/MSVC-appveyor-install.bat
index f9eb0c6..f973d29 100644
--- a/build/appveyor/MSVC-appveyor-install.bat
+++ b/build/appveyor/MSVC-appveyor-install.bat
@@ -31,14 +31,14 @@
 :: Things to install when NOT running in appveyor:
 IF "%APPVEYOR_BUILD_ID%" == "" (
     cup -y chocolatey                     || EXIT /B
-    cinst -c "%BUILDCACHE%" -y curl       || EXIT /B
-    cinst -c "%BUILDCACHE%" -y 7zip       || EXIT /B
-    cinst -c "%BUILDCACHE%" -y python3    || EXIT /B
-    cinst -c "%BUILDCACHE%" -y openssl.light || EXIT /B
+    cinst -y curl                         || EXIT /B
+    cinst -y 7zip                         || EXIT /B
+    cinst -y python3                      || EXIT /B
+    cinst -y openssl.light                || EXIT /B
 )
 
-cinst -c "%BUILDCACHE%" -y jdk8           || EXIT /B
-cinst -c "%BUILDCACHE%" -y winflexbison3  || EXIT /B
+cinst -y jdk8                             || EXIT /B
+cinst -y winflexbison3                    || EXIT /B
 
 :: zlib - not available through chocolatey
 CD "%APPVEYOR_SCRIPTS%"                   || EXIT /B
@@ -56,5 +56,4 @@
             tornado ^
             twisted                       || EXIT /B
 
-:: Haskell (GHC) and cabal (disabled: see Jira THRIFT-4545)
-:: cinst -c "%BUILDCACHE%" -y ghc            || EXIT /B
+cinst -y ghc                              || EXIT /B
diff --git a/build/appveyor/cl_setenv.bat b/build/appveyor/cl_setenv.bat
index 10af2d3..62856cb 100644
--- a/build/appveyor/cl_setenv.bat
+++ b/build/appveyor/cl_setenv.bat
@@ -37,7 +37,6 @@
 CALL cl_setgenerator.bat  || EXIT /B
 
 SET APPVEYOR_SCRIPTS=%APPVEYOR_BUILD_FOLDER%\build\appveyor
-SET BUILDCACHE=%APPVEYOR_BUILD_FOLDER%\..\build\cache
 SET BUILDDIR=%APPVEYOR_BUILD_FOLDER%\..\build\%PROFILE%\%PLATFORM%
 SET INSTDIR=%APPVEYOR_BUILD_FOLDER%\..\build\%PROFILE%\%PLATFORM%
 SET SRCDIR=%APPVEYOR_BUILD_FOLDER%
diff --git a/build/appveyor/cl_showenv.bat b/build/appveyor/cl_showenv.bat
index 3dda546..a70a490 100644
--- a/build/appveyor/cl_showenv.bat
+++ b/build/appveyor/cl_showenv.bat
@@ -38,7 +38,6 @@
 ECHO BOOST_ROOT            = %BOOST_ROOT%
 ECHO BOOST_INCLUDEDIR      = %BOOST_INCLUDEDIR%
 ECHO BOOST_LIBRARYDIR      = %BOOST_LIBRARYDIR%
-ECHO BUILDCACHE            = %BUILDCACHE%
 ECHO BUILDDIR              = %BUILDDIR%
 ECHO COMPILER              = %COMPILER%
 ECHO GENERATOR             = %GENERATOR%
diff --git a/lib/hs/thrift.cabal b/lib/hs/thrift.cabal
index 03a9814..a907d78 100644
--- a/lib/hs/thrift.cabal
+++ b/lib/hs/thrift.cabal
@@ -18,8 +18,8 @@
 --
 
 Name:           thrift
-Version:        1.0.0-dev
-Cabal-Version:  >= 1.24
+Version:        0.99.0
+Cabal-Version:  1.24
 License:        OtherLicense
 Category:       Foreign
 Build-Type:     Simple
@@ -63,8 +63,7 @@
     Thrift.Transport.IOBuffer,
     Thrift.Transport.Memory,
     Thrift.Types
-  Default-Language:
-    Haskell2010
+  Default-Language: Haskell2010
   Default-Extensions:
     DeriveDataTypeable,
     ExistentialQuantification,
@@ -82,3 +81,4 @@
   Ghc-Options: -Wall
   main-is: Spec.hs
   Build-Depends: base, thrift, hspec, QuickCheck >= 2.8.2, bytestring >= 0.10, unordered-containers >= 0.2.6
+  Default-Language: Haskell2010