Copyright | (C) 2012-15 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell98 |
Note: GHC.Generics
exports a number of names that collide with Control.Lens
.
You can use hiding or imports to mitigate this to an extent, and the following imports, represent a fair compromise for user code:
import Control.Lens hiding (Rep) import GHC.Generics hiding (from, to)
You can use generic
to replace from
and to
from GHC.Generics
,
and probably won't be explicitly referencing Rep
from Control.Lens
in code that uses generics.
This module provides compatibility with older GHC versions by using the generic-deriving package.
Documentation
module Generics.Deriving.Lens