Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compatibility with older and newer ghc:
* Disable doctests for ghc-8.0 and older. * Make some flags conditional * Fix compatibility with new aeson * Take care of a build warning
- Loading branch information
Showing
5 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
{-# LANGUAGE CPP #-} | ||
|
||
module Main where | ||
|
||
#if __GLASGOW_HASKELL__ >= 802 | ||
import Test.DocTest (mainFromCabal) | ||
import System.Environment (getArgs) | ||
|
||
main :: IO () | ||
main = mainFromCabal "conduit-aeson" =<< getArgs | ||
#else | ||
|
||
import System.IO | ||
|
||
main :: IO () | ||
main = hPutStrLn stderr "GHC version older than 8.2 are not supported" | ||
|
||
#endif |