X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FhsSyn%2FHsSyn.lhs;h=be7e0036df4bf920fb9af56a83d612378b03594d;hp=1365e1dbae23f33233335427737ea4a85d79dfa4;hb=e5c3b478b3cd1707cf122833822f44b2ac09b8e9;hpb=63489d40bdee972656ff115ab2309b809c0e39fc diff --git a/compiler/hsSyn/HsSyn.lhs b/compiler/hsSyn/HsSyn.lhs index 1365e1d..be7e003 100644 --- a/compiler/hsSyn/HsSyn.lhs +++ b/compiler/hsSyn/HsSyn.lhs @@ -9,6 +9,8 @@ which is declared in the various \tr{Hs*} modules. This module, therefore, is almost nothing but re-exporting. \begin{code} +{-# LANGUAGE DeriveDataTypeable #-} + module HsSyn ( module HsBinds, module HsDecls, @@ -21,7 +23,7 @@ module HsSyn ( module HsDoc, Fixity, - HsModule(..), HsExtCore(..), + HsModule(..), HsExtCore(..), CodeFlavor(..) ) where -- friends: @@ -39,12 +41,18 @@ import HsDoc -- others: import IfaceSyn ( IfaceBinding ) import Outputable -import SrcLoc ( Located(..) ) +import SrcLoc import Module ( Module, ModuleName ) import FastString + +-- libraries: +import Data.Data hiding ( Fixity ) \end{code} \begin{code} + +data CodeFlavor = LambdaFlavor | KappaFlavor + -- | All we actually declare here is the top-level structure for a module. data HsModule name = HsModule { @@ -70,8 +78,7 @@ data HsModule name -- ^ reason\/explanation for warning/deprecation of this module hsmodHaddockModHeader :: Maybe LHsDocString -- ^ Haddock module info and description, unparsed - } - + } deriving (Data, Typeable) data HsExtCore name -- Read from Foo.hcr = HsExtCore