Strafunski-ATermLib-1.6.0.3: An abstract data type designed for the exchange of tree-like data structures

Portabilityportable
Stabilityexperimental
Maintainerjoost.visser@di.uminho.pt
Safe HaskellNone

Data.ATerm.Conversion

Contents

Description

This module is part of the ATerm library for Haskell. It provides the class ATermConvertible of types that are convertible to and from ATerms. Additionally, it provides default instances of this class for some predefined Prelude types.

Synopsis

Conversion to and from ATerms

fromATermError :: String -> ATerm -> aSource

Auxiliary function for reporting errors.

Conversion of ATerms to and from Strings

toATermString :: ATermConvertible t => t -> StringSource

Convert to a textual ATerm representation without sharing (TXT format).

toSharedATermString :: ATermConvertible t => t -> StringSource

Convert to a textual ATerm representation with full sharing (TAF format).

fromATermString :: ATermConvertible t => String -> tSource

Convert from a textual ATerm representation.

Instances for basic types