Changeset 16610
- Timestamp:
- 06/02/07 10:42:42 (18 months ago)
- Location:
- src
- Files:
-
- 2 modified
-
Pugs.hs (modified) (2 diffs)
-
Pugs/AST/Internals.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs.hs
r16605 r16610 63 63 run' :: (?debugInfo :: DebugInfo) => [String] -> IO () 64 64 run' ("-d":rest) = do 65 info <- fmap Just (io $ newTVarIO Map.empty)65 info <- newDebugInfo 66 66 let ?debugInfo = info 67 67 run' rest … … 332 332 else return menv 333 333 debug <- if runOptDebug opts 334 then fmap Just (io $ newTVarIO Map.empty)334 then newDebugInfo 335 335 else return Nothing 336 336 stm $ modifyTVar ref $ \e -> e{ envDebug = debug } -
src/Pugs/AST/Internals.hs
r16412 r16610 89 89 anyToVal, vvToVal, anyFromVal, -- for circularity 90 90 91 DebugInfo, _Sym, _Var -- String -> ByteString constructors91 DebugInfo, newDebugInfo, _Sym, _Var -- String -> ByteString constructors 92 92 ) where 93 93 … … 1334 1334 1335 1335 type DebugInfo = Maybe (TVar (Map ID String)) 1336 1337 newDebugInfo :: IO DebugInfo 1338 newDebugInfo = fmap Just (io $ newTVarIO Map.empty) 1336 1339 1337 1340 type LexPads = [LexPad]
