hsimport-0.11.0: Extend the import list of a Haskell source file

Safe HaskellSafe
LanguageHaskell2010

HsImport.SymbolImport

Synopsis

Documentation

data SymbolImport Source #

The imported or from the import hidden symbol.

Constructors

Import Symbol

the symbol to import

Hiding Symbol

the symbol to hide from the import

Instances
Show SymbolImport Source # 
Instance details

Defined in HsImport.SymbolImport

data Symbol Source #

What of the symbol should be taken.

Constructors

Only Name

only the symbol should be taken

AllOf Name

all constructors or methods of the symbol should be taken: Symbol(..)

SomeOf Name [String]

some constructors or methods of the symbol should be taken: Symbol(X, Y)

Instances
Show Symbol Source # 
Instance details

Defined in HsImport.SymbolImport

symbol :: SymbolImport -> Symbol Source #

Retrieve the symbol out of the symbol import

isHiding :: SymbolImport -> Bool Source #

Check whether this symbol import is meant to hide a symbol.

toggleHiding :: SymbolImport -> SymbolImport Source #

Toogle the import style from hiding to import and vice versa.