Back to Purescript

`HidingImport` Warning

errors/HidingImport.md

latest527 B
Original Source

HidingImport Warning

Example

purescript
module ShortFailingExample where


import Prelude hiding (id)
import Data.Maybe

z = Just (-1)

Cause

A module is imported with the hiding form, and there is another implicit import present (which may or may not be hiding).

Fix

Make all but at most one import explicit. In the above example we could make either Data.Maybe or Prelude explicit, e.g.

import Prelude (negate)

Notes

This error is auto-fixable.