Closed ChristopherKing42 closed 8 years ago
If you have
main :: IO() a = 3 main = putStrLn "Hello World"
and ask atom to insert the type signature of main, you get
main
main :: IO() a = 3 main :: IO () main = putStrLn "Hello World"
The correct result should be
a = 3 main :: IO () main = putStrLn "Hello World"
or
Likewise, if you ask atom to insert the type of putStrLn, you get
main :: IO() a = 3 putStrLn :: String -> IO () main = putStrLn "Hello World"
the correct behavior would be to do nothing
Due to sheer complexity of finding out if there's already a definition or not, I'm inclined to leave this as-is. It's not breaking anything, and check will let you know that you have duplicate signatures.
If you have
and ask atom to insert the type signature of
main
, you getThe correct result should be
or
Likewise, if you ask atom to insert the type of putStrLn, you get
the correct behavior would be to do nothing