importify
importify copied to clipboard
[IMRF-92] Top level TemplateHaskell usages considered unused
See next example:
{-# LANGUAGE TemplateHaskell #-}
import Control.Lens (makeLenses)
data Foo = Foo { _foo :: Int }
makeLenses ''Foo
In this case makeLenses is considered unused and removed by importify. This happens because of this bug in haskell-name library: https://github.com/haskell-suite/haskell-names/issues/98