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

Common.Item

Description

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

Documentation

data ItemType Source #

Constructors

IT 

Fields

data Item Source #

Constructors

Item 

Fields

Instances

class ItemTypeable a where Source #

Minimal complete definition

toIT

Methods

toIT :: a -> ItemType Source #

Instances

ItemTypeable String Source # 

Methods

toIT :: String -> ItemType Source #

ItemTypeable ItemType Source # 
ItemTypeable (String, Doc) Source # 

Methods

toIT :: (String, Doc) -> ItemType Source #

ItemTypeable (String, String, String) Source # 

Methods

toIT :: (String, String, String) -> ItemType Source #

class Monad m => ItemConvertible a m where Source #

Minimal complete definition

toitem

Methods

toitem :: a -> m Item Source #

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

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

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

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