Skip to content

Warn when supplying version number to package-qualified import

$ ghci -XPackageImports
GHCi, version 7.8.3: ...

Prelude> import "transformers-0.3.0.0" Control.Monad.Trans.List

<no location info>:
    Could not find module ‘Control.Monad.Trans.List’
    It is not a module in the current program, or in any known package.

Prelude> import "transformers" Control.Monad.Trans.List
Prelude Control.Monad.Trans.List>

The import with explicit package name works, if I omit the package version. I think GHC should at least warn that providing a version does not work.

See also #2362 (closed).

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