Skip to content

Detabbing

Attached Python script detabs GHC source and removes the text "The above warning supression flag is a temporary kludge.". Detabbed version passed "sh validate" on my machine. Just like GHC, it uses tabstop 8, so it does not change semantics of the code.

To use, run "python detab.py" in the main source tree. It will overwrite tabs in all subdirectories; for a sample, it can be run in a subdirectory.

It leaves three files (TcSMonad.lhs, LibFFI.hs, LibFFI.hsc) unchanged because the warning there is not exactly the same, but this is a minor issue.

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information