futhark-0.20.0: 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 Show-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
Semigroup Warnings Source # 
Instance details

Defined in Language.Futhark.Warnings

Monoid Warnings Source # 
Instance details

Defined in Language.Futhark.Warnings

Pretty Warnings Source # 
Instance details

Defined in Language.Futhark.Warnings

Methods

ppr :: Warnings -> Doc #

pprPrec :: Int -> Warnings -> Doc #

pprList :: [Warnings] -> Doc #

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.