Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder and Ewaryst Schulz and Uni Bremen 2009
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerEwaryst.Schulz@dfki.de
Stabilityexperimental
Portabilitynon-portable (MPTC)
Safe HaskellSafe-Inferred

Common.Item

Description

This module provides the item datatype for an abstract logic independent representation of basic specs.

Documentation

data ItemType

Constructors

IT 

data Item

Constructors

Item 

Instances

class Monad m => ItemConvertible a m where

Methods

toitem :: a -> m Item

listFromL :: ItemConvertible a m => [a] -> m [Annoted Item]

toAItem :: ItemConvertible a m => a -> m (Annoted Item)

fromC :: ItemConvertible a m => a -> m (Annoted Item)

fromL :: (ItemConvertible a m, ItemTypeable b) => b -> [a] -> m (Annoted Item)

fromAL :: (ItemConvertible a m, ItemTypeable b) => b -> [Annoted a] -> m (Annoted Item)

mkItem :: ItemTypeable a => a -> Range -> [Annoted Item] -> Item

mkItemM :: (ItemTypeable a, Monad m) => a -> Range -> m [Annoted Item] -> m Item

mkItemMM :: (ItemTypeable a, Monad m) => a -> Range -> [m (Annoted Item)] -> m Item

mkFlatItemM :: (ItemTypeable a, Monad m) => a -> Range -> m Item