[darcs-devel] New extension systnax -WError? How do you want to solve this?
Marc Weber
marco-oweber at gmx.de
Sat Nov 8 05:13:22 UTC 2008
Problem: (Lock.lhs)
\begin{code}
{-# OPTIONS_GHC -cpp -fffi #-}
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
results in: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead
found The Glorious Glasgow Haskell Compilation System, version 6.11
configure: error: Compile failed.
etc.. ?
Probably the best way is pasing -cpp all the time by default and then
using something like this:
#if (__GLASGOW_HASKELL__ > 608)
{-# OPTIONS_GHC -fbang-patterns -fffi #-}
#else
{-# LANGUAGE BangPatterns, ForeignFunctionInterface #-}
#endif
Sincerly
Marc Weber
More information about the darcs-devel
mailing list