Hets - the Heterogeneous Tool Set
Copyright(c) Martin Kuehl Uni Bremen 2008-2009
LicenseGPLv2 or higher, see LICENSE.txt
Maintainermkhl@informatik.uni-bremen.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe

Maude.Meta.AsSymbol

Description

Viewing Maude data types as Symbols.

Defines a type class AsSymbol that lets us treat Maude data types as Symbols, converting back and forth between them as needed.

Consider importing Maude.Meta instead of this module.

Synopsis

The AsSymbol type class

class AsSymbol a where Source #

Minimal complete definition

Nothing

Methods

asSymbol :: a -> Symbol Source #

Convert the input into a Symbol.

asSymbolMaybe :: a -> Maybe Symbol Source #

Convert the input into Maybe a Symbol

Instances

Instances details
AsSymbol OpId Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol LabelId Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Kind Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Sort Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Type Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Term Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol StmntAttr Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Operator Source # 
Instance details

Defined in Maude.Meta.AsSymbol

AsSymbol Symbol Source # 
Instance details

Defined in Maude.Meta.AsSymbol

Auxiliary functions

asSymbolSet :: AsSymbol a => a -> SymbolSet Source #

Instead of a single Symbol, convert the input into a SymbolSet.

mapAsSymbol :: AsSymbol a => (Symbol -> a) -> SymbolMap -> a -> a Source #

Apply a SymbolMap to the input, then convert the result back to the original type.