packages feed

language-vhdl 0.1.2.2 → 0.1.2.3

raw patch · 3 files changed

+6/−7 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Language.VHDL.Syntax: [design_primary_unit] :: DesignUnit -> PrimaryUnit
- Language.VHDL.Syntax: [design_secondary_unit] :: DesignUnit -> SecondaryUnit
- Language.VHDL.Syntax: DesignUnit :: PrimaryUnit -> SecondaryUnit -> DesignUnit
+ Language.VHDL.Syntax: DesignUnit :: ContextClause -> LibraryUnit -> DesignUnit

Files

language-vhdl.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                language-vhdl-version:             0.1.2.2+version:             0.1.2.3 synopsis:            VHDL AST and pretty printer in Haskell. -- description:          license:             BSD3
src/Language/VHDL/Pretty.hs view
@@ -342,7 +342,7 @@   pp (DMechInertial e) = condL (text "REJECT") e <+> text "INERTIAL"  instance Pretty DesignUnit where-  pp (DesignUnit primary secondary) = pp primary <+> pp secondary+  pp (DesignUnit ctxt lib) = pp ctxt <+> pp lib  instance Pretty Designator where   pp (DId i) = pp i@@ -633,7 +633,9 @@ instance Pretty LibraryClause where   pp (LibraryClause ns) = text "LIBRARY" <+> pp ns <+> semi -instance Pretty LibraryUnit where pp = error "missing: LibraryUnit" -- todo+instance Pretty LibraryUnit where+  pp (LibraryPrimary p)   = pp p+  pp (LibrarySecondary s) = pp s  instance Pretty Literal where   pp (LitNum n)       = pp n
src/Language/VHDL/Syntax.hs view
@@ -2648,10 +2648,7 @@  type DesignFile = [DesignUnit] -data DesignUnit = DesignUnit {-    design_primary_unit   :: PrimaryUnit-  , design_secondary_unit :: SecondaryUnit-  }+data DesignUnit = DesignUnit ContextClause LibraryUnit   deriving (Eq, Show)  data LibraryUnit =