helium-1.8: The Helium Compiler.

Safe HaskellNone

Helium.StaticAnalysis.Heuristics.UnifierHeuristics

Description

A heuristic that tries to blaim two program locations that both contribute to the type error, instead of preferring (or choosing) one location over the other. The type error messages will be more symmetric.

Documentation

class IsUnifier a whereSource

Methods

typeErrorForUnifier :: (Tp, Tp) -> (a, a) -> aSource

isUnifier :: a -> Maybe (Int, (String, LocalInfo, String))Source