| 1 | -- Bar.hs starts as a broken file |
|---|
| 2 | 00:15:02 - tora@eustacia:/tmp |
|---|
| 3 | >cat Bar.hs |
|---|
| 4 | module Bar where |
|---|
| 5 | |
|---|
| 6 | bar = |
|---|
| 7 | |
|---|
| 8 | 00:15:04 - tora@eustacia:/tmp |
|---|
| 9 | >ghci Bar.hs |
|---|
| 10 | GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help |
|---|
| 11 | Loading package base ... linking ... done. |
|---|
| 12 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 13 | |
|---|
| 14 | Bar.hs:4:0: parse error (possibly incorrect indentation) |
|---|
| 15 | Failed, modules loaded: none. |
|---|
| 16 | Prelude> :e -- Bar is now OK |
|---|
| 17 | Prelude> :r |
|---|
| 18 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 19 | Ok, modules loaded: Bar. |
|---|
| 20 | Prelude> :m +Bar ***************** |
|---|
| 21 | Prelude Bar> :e -- Bar is now BAD |
|---|
| 22 | Prelude Bar> :r |
|---|
| 23 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 24 | |
|---|
| 25 | Bar.hs:4:0: parse error (possibly incorrect indentation) |
|---|
| 26 | Failed, modules loaded: none. |
|---|
| 27 | Prelude> :e -- Bar is now OK |
|---|
| 28 | Prelude> :r |
|---|
| 29 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 30 | Ok, modules loaded: Bar. |
|---|
| 31 | Prelude Bar> :l Bar |
|---|
| 32 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 33 | Ok, modules loaded: Bar. |
|---|
| 34 | *Bar> :e -- Bar is now BAD |
|---|
| 35 | *Bar> :r |
|---|
| 36 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 37 | |
|---|
| 38 | Bar.hs:4:0: parse error (possibly incorrect indentation) |
|---|
| 39 | Failed, modules loaded: none. |
|---|
| 40 | Prelude> :e -- Bar is now OK |
|---|
| 41 | Prelude> :r |
|---|
| 42 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 43 | Ok, modules loaded: Bar. |
|---|
| 44 | *Bar> :e -- Bar is now BAD |
|---|
| 45 | *Bar> :l Bar |
|---|
| 46 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 47 | |
|---|
| 48 | Bar.hs:4:0: parse error (possibly incorrect indentation) |
|---|
| 49 | Failed, modules loaded: none. |
|---|
| 50 | Prelude> :e -- Bar is now OK |
|---|
| 51 | Prelude> :r |
|---|
| 52 | [1 of 1] Compiling Bar ( Bar.hs, interpreted ) |
|---|
| 53 | Ok, modules loaded: Bar. |
|---|
| 54 | Prelude> Leaving GHCi. **************** |
|---|