MapDeclMPropStruct

Plain source file: property/transforms/MapDeclMPropStruct.hs (2002-06-11)

MapDeclMPropStruct is imported by: NameMapsPropDecorate, MapDeclMProp.

module MapDeclMPropStruct where

import MapDeclM
import HsPropStruct
import HsPropMaps

-- we assume only "expressions" & "declarations" may contain declarations
instance (MapDeclM pa ds,MapDeclM pp ds) => MapDeclM (PD i pa pp) ds where
    mapDeclM f = seqPD . mapPD return m m
      where m x = mapDeclM f x

instance (MapDeclM e ds,MapDeclM pa ds,MapDeclM pp ds)
       => MapDeclM (PA i e t pa pp) ds where
    mapDeclM f = seqPA . mapPA return m return m m
      where m x = mapDeclM f x

instance (MapDeclM e ds,MapDeclM pa ds,MapDeclM pp ds)
       => MapDeclM (PP i e p t pa pp) ds where
    mapDeclM f = seqPP . mapPP return m return return m m
      where m x = mapDeclM f x

Index

(HTML for this module was generated on 2006-08-12. About the conversion tool.)