Skip to content

ghc -Wall does not complain about unnecessary data constructor imports

If it is enough to import:

import SomeModule(SomeType)

Then ghc should complain (warn) when importing:

import SomeModule(SomeType(..))

or:

import SomeModule(SomeType(SomeConstructor))

But it doesn't output any complaint or warning.

Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information