haskell: fix GHC version check for GHCJS

closes #7137
This commit is contained in:
Charles Strahan 2015-04-03 18:54:18 -04:00
parent 55325978c0
commit 3d60f6401f

View File

@ -3,7 +3,7 @@
, ignoreCollisions ? false, withLLVM ? false }:
# This wrapper works only with GHC 6.12 or later.
assert lib.versionOlder "6.12" ghc.version;
assert lib.versionOlder "6.12" ghc.version || ghc.isGhcjs;
# It's probably a good idea to include the library "ghc-paths" in the
# compiler environment, because we have a specially patched version of