mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-12 07:18:31 +01:00
Include alex/happy, workarounds for Mac/Windows #278
This commit is contained in:
parent
0bb3e90361
commit
e2d9fd1da2
@ -224,6 +224,7 @@ defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
|
||||
, "compdata hybrid-vectors"
|
||||
, "executable-path formatting quandl-api"
|
||||
, "fgl hmatrix hmatrix-gsl"
|
||||
, "alex happy"
|
||||
]
|
||||
when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
|
||||
mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
|
||||
|
||||
@ -10,6 +10,7 @@ import Control.Exception (throwIO)
|
||||
import qualified Codec.Archive.Tar as Tar
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import Control.Arrow (second)
|
||||
import Control.Monad (unless)
|
||||
import Distribution.Text (display)
|
||||
import System.Directory (doesFileExist)
|
||||
import System.FilePath ((</>), (<.>))
|
||||
@ -47,6 +48,12 @@ createHackageFile isInc ii ghcVer date hackageH tarballH = do
|
||||
, filter (/= '.') ghcVer
|
||||
, if isInc then "-inclusive" else "-exclusive"
|
||||
]
|
||||
|
||||
unless isInc $ do
|
||||
-- Add in some OS-specific package/version combos to work with
|
||||
-- non-Linux systems.
|
||||
hPutStrLn hackageH "hfsevents-0.1.5"
|
||||
hPutStrLn hackageH "Win32-notify-0.3"
|
||||
where
|
||||
selected = Map.fromList . map toStrs . Map.toList $
|
||||
fmap spiVersion (iiPackages ii)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user