on master help sign in
Include alex/happy, workarounds for Mac/Windows #278
commite2d9fd1da25019c06679e44298ffb9b007070e57 authorMichael Snoyman <michael@snoyman.com> dateSun 17 Aug 2014, 10:37 (12 years ago) parent0bb3e90
2 files changed+8
Stackage/Config.hs+1 Stackage/ServerFiles.hs+7
Stackage/Config.hs+1
@@ -224,6 +224,7 @@ defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
224224 , "compdata hybrid-vectors"
225225 , "executable-path formatting quandl-api"
226226 , "fgl hmatrix hmatrix-gsl"
227+ , "alex happy"
227228 ]
228229 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
229230 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
Stackage/ServerFiles.hs+7
@@ -10,6 +10,7 @@ import Control.Exception (throwIO)
1010import qualified Codec.Archive.Tar as Tar
1111import qualified Data.ByteString.Lazy as L
1212import Control.Arrow (second)
13+import Control.Monad (unless)
1314import Distribution.Text (display)
1415import System.Directory (doesFileExist)
1516import System.FilePath ((</>), (<.>))
@@ -47,6 +48,12 @@ createHackageFile isInc ii ghcVer date hackageH tarballH = do
4748 , filter (/= '.') ghcVer
4849 , if isInc then "-inclusive" else "-exclusive"
4950 ]
51+
52+ unless isInc $ do
53+ -- Add in some OS-specific package/version combos to work with
54+ -- non-Linux systems.
55+ hPutStrLn hackageH "hfsevents-0.1.5"
56+ hPutStrLn hackageH "Win32-notify-0.3"
5057 where
5158 selected = Map.fromList . map toStrs . Map.toList $
5259 fmap spiVersion (iiPackages ii)