build fix for GHC 7.2

This commit is contained in:
eagletmt 2012-01-27 21:22:36 +09:00
parent a5746be927
commit 948a23e6ee

View File

@ -1,3 +1,5 @@
{-# LANGUAGE CPP #-}
module Flag where
import DynFlags
@ -6,5 +8,10 @@ import Types
listFlags :: Options -> IO String
listFlags opt = return $ convert opt $
[ "-f" ++ prefix ++ option
| (option,_,_) <- fFlags, prefix <- ["","no-"]
#if __GLASGOW_HASKELL__ == 702
| (option,_,_,_) <- fFlags
#else
| (option,_,_) <- fFlags
#endif
, prefix <- ["","no-"]
]