Commit 9969863a authored by Simon Jakobi's avatar Simon Jakobi Committed by Ben Gamari

Use a less confusing type variable in a few types

parent d14b1ec6
......@@ -41,7 +41,7 @@ One per \tr{import} declaration in a module.
-}
-- | Located Import Declaration
type LImportDecl name = Located (ImportDecl name)
type LImportDecl pass = Located (ImportDecl pass)
-- ^ When in a list this may have
--
-- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnSemi'
......@@ -166,7 +166,7 @@ type LIEWrappedName name = Located (IEWrappedName name)
-- | Located Import or Export
type LIE name = Located (IE name)
type LIE pass = Located (IE pass)
-- ^ When in a list this may have
--
-- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnComma'
......
......@@ -63,12 +63,12 @@ import Data.Data hiding ( Fixity )
-- | Haskell Module
--
-- All we actually declare here is the top-level structure for a module.
data HsModule name
data HsModule pass
= HsModule {
hsmodName :: Maybe (Located ModuleName),
-- ^ @Nothing@: \"module X where\" is omitted (in which case the next
-- field is Nothing too)
hsmodExports :: Maybe (Located [LIE name]),
hsmodExports :: Maybe (Located [LIE pass]),
-- ^ Export list
--
-- - @Nothing@: export list omitted, so export everything
......@@ -82,11 +82,11 @@ data HsModule name
-- ,'ApiAnnotation.AnnClose'
-- For details on above see note [Api annotations] in ApiAnnotation
hsmodImports :: [LImportDecl name],
hsmodImports :: [LImportDecl pass],
-- ^ We snaffle interesting stuff out of the imported interfaces early
-- on, adding that info to TyDecls/etc; so this list is often empty,
-- downstream.
hsmodDecls :: [LHsDecl name],
hsmodDecls :: [LHsDecl pass],
-- ^ Type, class, value, and interface signature decls
hsmodDeprecMessage :: Maybe (Located WarningTxt),
-- ^ reason\/explanation for warning/deprecation of this module
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment