find package:ghc
Return the canonical element of an equivalence class
Point.
Takes a
ModuleName and possibly a
UnitId, and consults
the filesystem and package database to find the corresponding
Module, using the algorithm that is used for an
import
declaration.
Find the case alternative corresponding to a particular constructor:
panics if no such constructor exists
Extract the default case alternative
Find a reasonably short cycle a->b->c->a, in a graph The
graph might not necessarily be strongly connected.
Find the offset of the # character in the StringBuffer.
Make sure that it contains one before calling this function!
The maximal key of the map. Calls
error if the
map is empty. Use
maxViewWithKey if the map may be empty.
The minimal key of the map. Calls
error if the
map is empty. Use
minViewWithKey if the map may be empty.
The expression
(findWithDefault def k
map) returns the value at key
k or returns
def
when the key is not an element of the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x'
findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
The maximal element of a set.
The minimal element of the set.
Don't check that an imported interface file actually exists if it can
only be at one location. The interface will be reported as
InstalledFound even if the file doesn't exist, so this is only
useful in specific cases (e.g. to generate dependencies with `ghc -M`)
If we encounter unknown modules, should we suggest modules that have a
similar name.