Morphism.hs revision d5fe06af711a6912ae028ebf873eada4ee8733f8
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiModule : $Header$
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiDescription : Symbol related functions for SoftFOL.
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiCopyright : (c) Klaus Luettich, Uni Bremen 2007
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiLicense : similar to LGPL, see HetCATS/LICENSE.txt or LIZENZ.txt
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiMaintainer : luecke@informatik.uni-bremen.de
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian MaederStability : provisional
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiPortability : portable
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskiFunctions for symbols of SoftFOL.
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till Mossakowskimodule SoftFOL.Morphism (symOf, symbolToId) where
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till Mossakowskiimport qualified Data.Set as Set
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till Mossakowskiimport qualified Data.Map as Map
41cff438a611c7aac5b2a2c3e395fc5b88d68230Till MossakowskisymOf :: Sign -> Set.Set SFSymbol
in Set.unions [opSymbs,predSymbs,sortSymbs]
toOpSymb :: (SPIdentifier,Set.Set([SPIdentifier], SPIdentifier))
-> Set.Set SFSymbol
toOpSymb (ident,ts) = Set.map toSymb ts
toPredSymb (ident,ts) = Set.map toSymb ts