Multiline input (‘:set +m’) terminated by trailing whitespace
$ ghci -ignore-dot-ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Prelude> :set +m
Prelude> let
Prelude| a :: Int
Prelude| a = 5
Prelude|
Prelude>
works fine with multiline input, but if you add one trailing space it immediately terminates the input
Prelude> let
Prelude| a :: Int␣
<interactive>:11:1: error:
The type signature for ‘a’ lacks an accompanying binding
I don't know if this is the desired behavior but this means I can't copy/paste code into GHCi that has a trailing whitespace.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |