maude-0.6.1: An interface to the Maude rewriting system.

Portabilityunknown
Stabilityexperimental
Maintainerlazar6@illinois.edu
Safe HaskellSafe-Infered

Language.Maude.Exec.Types

Contents

Description

Types shared between modules in the Language.Maude.Exec namespace

Synopsis

Error handling

data MaudeException Source

Constructors

MaudeFailure

Thrown when the maude executable fails

LogToXmlFailure

Thrown when the log produced by Maude is not parseable as XML

XmlToResultFailure String Element

Thrown when the XML can't be parsed/translated to one of the result types below

Configuring Maude's execution

data MaudeConf Source

Configuration of Maude's execution

Constructors

MaudeConf 

Fields

maudeCmd :: FilePath

Path to the Maude executable

loadFiles :: [FilePath]

Files to load before running a command

Result types

data MaudeResult Source

Low-level Maude result

Constructors

MaudeResult 

Fields

maudeStdout :: Text

Text printed to standard out during execution

maudeXmlLog :: Text

XML log obtained via Maude's --xml-log option

data RewriteResult Source

High-level (e)rewrite result

Constructors

RewriteResult 

Fields

resultTerm :: Term

The rewritten term

rewriteStatistics :: MaudeStatistics

Statistics about the rewrite performed

type SearchResults = [SearchResult]Source

Several search results

data MaudeStatistics Source

Statistics returned by Maude after a successful command

Constructors

MaudeStatistics 

Fields

totalRewrites :: Integer

Total rewrites performed

realTime :: Integer

Real time (milliseconds)

cpuTime :: Integer

CPU time (milliseconds)