[project @ 2000-04-14 09:54:12 by simonmar]
authorsimonmar <unknown>
Fri, 14 Apr 2000 09:54:12 +0000 (09:54 +0000)
committersimonmar <unknown>
Fri, 14 Apr 2000 09:54:12 +0000 (09:54 +0000)
fix for interface header regexp; orphan modules weren't being recorded
as such.

ghc/driver/ghc-iface.lprl

index 90424c5..f452fa1 100644 (file)
@@ -211,7 +211,7 @@ sub readHiFile {
     hi_line: while (<HIFILE>) {
        next if /^ *$/; # blank line
 
-       if ( /^__interface ("[A-Za-z]*"\s*)([A-Z]\S*) (\d+) (\!)?/ ) {
+       if ( /^__interface ("[A-Za-z]*"\s*)([A-Z]\S*)\s+(\d+)?\s*(\!)?/ ) {
            if ( $mod ne 'new' ) {
                # Reading old .hi file
                $ModuleVersion{$mod} = $3;