Skip to content

Commit

Permalink
Replace EnumMap dep with EnumContainers dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal Lotem committed Nov 22, 2010
1 parent 1065dcf commit d6a27d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dwarf.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Description: Parser for DWARF debug format.
Data-Files: tests/Test.hs

library
build-depends: base >= 2 && < 5, bytestring, containers, binary, array, EnumMap
build-depends: base >= 2 && < 5, bytestring >= 0.9 && < 0.10, containers >= 0.3 && < 0.4, binary >= 0.5 && < 0.6, array >= 0.3 && < 0.4, EnumContainers >= 0.1 && < 0.2
hs-source-dirs: src
exposed-modules: Data.Dwarf
6 changes: 3 additions & 3 deletions src/Data/Dwarf.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ import Data.Maybe
import Data.Char
import Control.Monad
import Control.Applicative
import qualified Data.List as LI
import qualified Data.List as LI
import qualified Data.Map as M
import qualified Data.EnumMap as EM
import qualified Data.EnumIntMap as EM
import qualified Data.Array as A
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as C
Expand Down Expand Up @@ -474,7 +474,7 @@ parseDwarfInfo :: Bool -- ^ True for little endian target addresses.
-> B.ByteString -- ^ ByteString for the .debug_info section.
-> B.ByteString -- ^ ByteString for the .debug_abbrev section.
-> B.ByteString -- ^ ByteString for the .debug_str section.
-> EM.EnumMap Word64 DIE -- ^ A map from the unique ids to their corresponding DWARF information entries.
-> EM.EnumIntMap Word64 DIE -- ^ A map from the unique ids to their corresponding DWARF information entries.
parseDwarfInfo littleEndian info_section abbrev_section str_section =
let di = parseDwarfInfoList littleEndian info_section abbrev_section str_section
in EM.fromList $ zip (map dieId di) di
Expand Down

0 comments on commit d6a27d4

Please sign in to comment.