commit
79319558a5
|
@ -35,7 +35,7 @@ custom-setup
|
||||||
setup-depends:
|
setup-depends:
|
||||||
base >= 4 && <5,
|
base >= 4 && <5,
|
||||||
process >= 1.0 && <1.7,
|
process >= 1.0 && <1.7,
|
||||||
Cabal >= 1.10 && <2.3
|
Cabal >= 1.10 && <2.5
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
|
|
|
@ -240,9 +240,10 @@ getParentTree t =
|
||||||
where
|
where
|
||||||
pre t = modify (first ((:) t))
|
pre t = modify (first ((:) t))
|
||||||
post t = do
|
post t = do
|
||||||
(_:rest, map) <- get
|
(x, map) <- get
|
||||||
case rest of [] -> put (rest, map)
|
case x of
|
||||||
(x:_) -> put (rest, Map.insert (getId t) x map)
|
_:rest -> case rest of [] -> put (rest, map)
|
||||||
|
(x:_) -> put (rest, Map.insert (getId t) x map)
|
||||||
|
|
||||||
-- Given a root node, make a map from Id to Token
|
-- Given a root node, make a map from Id to Token
|
||||||
getTokenMap :: Token -> Map.Map Id Token
|
getTokenMap :: Token -> Map.Map Id Token
|
||||||
|
|
Loading…
Reference in New Issue