Skip to content

Commit

Permalink
EnumMap: Use DeriveTraversable instead of GND
Browse files Browse the repository at this point in the history
GeneralizedNewtypeDeriving can no longer derive Traversable instances
with the new Roles mechanism as documented in the Wiki[1].
DeriveTraversable still works and the change should be backwards
compatible as it should produce equivalent code.

[1] http://ghc.haskell.org/trac/ghc/wiki/Roles#RolesandTraversable
  • Loading branch information
bgamari committed Sep 24, 2013
1 parent bf66e66 commit d2603aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Data/EnumMap/Base.hs
@@ -1,5 +1,6 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveTraversable #-}

-- |
-- Module : $Header$
Expand Down

0 comments on commit d2603aa

Please sign in to comment.