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 into literate haskell #113

Closed ChristopherKing42 closed 8 years ago

ChristopherKing42 commented 8 years ago

If you have

This is a comment.

> main = putStrLn "Hello World"

This is also a comment.

and ask it to insert the type of main, it will do

This is a comment.

main :: IO ()
> main = putStrLn "Hello World"

This is also a comment.

Correct behavior is

This is a comment.

> main :: IO ()
> main = putStrLn "Hello World"

This is also a comment.
lierdakil commented 8 years ago

I gather that you fixed #111 then?

ChristopherKing42 commented 8 years ago

@liordakil This outside a cabal project. I'll have to check again for within.