diff options
| author | Austin Seipp <aseipp@pobox.com> | 2013-06-18 18:45:31 -0500 |
|---|---|---|
| committer | Austin Seipp <aseipp@pobox.com> | 2013-06-18 21:26:21 -0500 |
| commit | d8ee2b06f3a47ed08239e4f52cec8aa8e49b6ef6 (patch) | |
| tree | 57c80577f2c66e4f6853a4525a7e0043151ebc71 /compiler/ghci/DebuggerUtils.hs | |
| parent | 232737a0260a04c6c274a4a619589aa078145416 (diff) | |
| download | haskell-d8ee2b06f3a47ed08239e4f52cec8aa8e49b6ef6.tar.gz | |
Fix many ASSERT uses under Clang.
Clang doesn't like whitespace between macro and arguments.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'compiler/ghci/DebuggerUtils.hs')
| -rw-r--r-- | compiler/ghci/DebuggerUtils.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ghci/DebuggerUtils.hs b/compiler/ghci/DebuggerUtils.hs index 7a03bbcdc2..3d73e69e2b 100644 --- a/compiler/ghci/DebuggerUtils.hs +++ b/compiler/ghci/DebuggerUtils.hs @@ -115,14 +115,14 @@ dataConInfoPtrToName x = do -- Warning: this code assumes that the string is well formed. parse :: [Word8] -> ([Word8], [Word8], [Word8]) parse input - = ASSERT (all (>0) (map length [pkg, mod, occ])) (pkg, mod, occ) + = ASSERT(all (>0) (map length [pkg, mod, occ])) (pkg, mod, occ) where dot = fromIntegral (ord '.') (pkg, rest1) = break (== fromIntegral (ord ':')) input (mod, occ) = (concat $ intersperse [dot] $ reverse modWords, occWord) where - (modWords, occWord) = ASSERT (length rest1 > 0) (parseModOcc [] (tail rest1)) + (modWords, occWord) = ASSERT(length rest1 > 0) (parseModOcc [] (tail rest1)) parseModOcc :: [[Word8]] -> [Word8] -> ([[Word8]], [Word8]) -- We only look for dots if str could start with a module name, -- i.e. if it starts with an upper case character. |
