futhark-0.24.3: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Futhark.Warnings

Description

A very simple representation of collections of warnings. Warnings have a position (so they can be ordered), and their Pretty-instance produces a human-readable string.

Synopsis

Documentation

data Warnings Source #

The warnings produced by the compiler. The Show instance produces a human-readable description.

Instances

Instances details
Monoid Warnings Source # 
Instance details

Defined in Language.Futhark.Warnings

Semigroup Warnings Source # 
Instance details

Defined in Language.Futhark.Warnings

anyWarnings :: Warnings -> Bool Source #

True if there are any warnings in the set.

singleWarning :: SrcLoc -> Doc () -> Warnings Source #

A single warning at the given location.

singleWarning' :: SrcLoc -> [SrcLoc] -> Doc () -> Warnings Source #

A single warning at the given location, but also with a stack trace (sort of) to the location.

listWarnings :: Warnings -> [(SrcLoc, Doc ())] Source #

Exports Warnings into a list of (location, problem).