haskell / containers

Assorted concrete container types
https://hackage.haskell.org/package/containers
315 stars 178 forks source link

Test non-GHC code #257

Open treeowl opened 8 years ago

treeowl commented 8 years ago

Many modules use GHC special features when compiled with GHC. Our tests don't currently verify that things will work under other hypothetical compilers. I think we can approximate this by using a private macro instead of directly relying on __GLASGOW_HASKELL__. Given an appropriate Cabal flag, this would be undefed. Then we could tell Travis to run a test with the latest version of GHC pretending it's not GHC.

Better, long term, would be to switch (almost) entirely from "Which GHC, if any?" to "Which language extensions are available?"

sjakobi commented 4 years ago

Related: https://github.com/haskell/containers/pull/728, https://mail.haskell.org/pipermail/libraries/2020-June/030604.html.