atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Improperly insert type #114

Closed ChristopherKing42 closed 8 years ago

ChristopherKing42 commented 8 years ago

If you have

main = putStrLn "Hello World"

and you ask atom to insert the type of "Hello World", the result is

 :: [Char]
main = putStrLn "Hello World"

The proper behavior is

main = putStrLn ("Hello World" :: String)

or failure

lierdakil commented 8 years ago

That's an interesting idea. I'll see what I can do.