mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-02 09:30:28 +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"
|
, "compdata hybrid-vectors"
|
||||||
, "executable-path formatting quandl-api"
|
, "executable-path formatting quandl-api"
|
||||||
, "fgl hmatrix hmatrix-gsl"
|
, "fgl hmatrix hmatrix-gsl"
|
||||||
|
, "alex happy"
|
||||||
]
|
]
|
||||||
when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
|
when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
|
||||||
mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
|
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 Codec.Archive.Tar as Tar
|
||||||
import qualified Data.ByteString.Lazy as L
|
import qualified Data.ByteString.Lazy as L
|
||||||
import Control.Arrow (second)
|
import Control.Arrow (second)
|
||||||
|
import Control.Monad (unless)
|
||||||
import Distribution.Text (display)
|
import Distribution.Text (display)
|
||||||
import System.Directory (doesFileExist)
|
import System.Directory (doesFileExist)
|
||||||
import System.FilePath ((</>), (<.>))
|
import System.FilePath ((</>), (<.>))
|
||||||
@ -47,6 +48,12 @@ createHackageFile isInc ii ghcVer date hackageH tarballH = do
|
|||||||
, filter (/= '.') ghcVer
|
, filter (/= '.') ghcVer
|
||||||
, if isInc then "-inclusive" else "-exclusive"
|
, 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
|
where
|
||||||
selected = Map.fromList . map toStrs . Map.toList $
|
selected = Map.fromList . map toStrs . Map.toList $
|
||||||
fmap spiVersion (iiPackages ii)
|
fmap spiVersion (iiPackages ii)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user