Skip to content
GitLab
Explore
Sign in
Register
Glasgow Haskell Compiler
GHC
Wiki
Proposal
helpful import error
helpful import error
· Changes
Page history
Re-run import
authored
Mar 29, 2019
by
Tobias Dammers
Show whitespace changes
Inline
Side-by-side
proposal/helpful-import-error.md
View page @
cc1a7a6a
...
@@ -9,17 +9,28 @@ Issue raised here: [ https://ghc.haskell.org/trac/ghc/ticket/11418](https://ghc.
...
@@ -9,17 +9,28 @@ Issue raised here: [ https://ghc.haskell.org/trac/ghc/ticket/11418](https://ghc.
Given these two modules:
Given these two modules:
Aaa.hs:
Aaa.hs:
```
```
moduleAaawhereimportBBbmain::IO()main= putStrLn myString
module Aaa where
import BBb
main :: IO ()
main = putStrLn myString
```
```
Bbb.hs:
Bbb.hs:
```
```
moduleBbbwheremyString::StringmyString="hi"
module Bbb where
myString :: String
myString = "hi"
```
```
...
...