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.IO

Contents

Description

This module is part of the ATerm library for Haskell. This module provides wrapper functions that take care of IO.

Synopsis

Transformation wrapper

atermIOwrap :: (ATermConvertible t, ATermConvertible a) => ProgramName -> (t -> IO a) -> IO ()Source

Wrapper function to create a main function in the IO monad, given a program name and a monadic transformation function.

Helpers

dehyphen :: String -> StringSource

Turn hyphens in a String into underscores.

dehyphenAST :: ATerm -> ATermSource

Turn hyphens in AST into underscores except inside nodes that represent literals.

dehyphenUnquoted :: [Char] -> [Char]Source

Turn hyphens in unquoted literal into underscores.

headToUpper :: String -> StringSource

Turn the first character into upper case.

afunCap :: ATerm -> ATermSource

Make all AFun's start with an uppercase letter.

Option handling

data OptionsATermIO Source

Constructors

OptionsATermIO 

Fields

fin :: String
 
fout :: String
 
format :: String