So I have a very basic haskell file that looks like this :
main = thing
thing = print "hi"
When I run the ghc-mod command to get info on the main function like this : 'ghc-mod info file.hs main', I get the proper result :
main :: IO () -- Defined at file.hs:1:1
But then if I try 'ghc-mod info file.hs thing', it doesn't output anything at all, not even a blank line or error. I have version 5.2.0.0 of ghc-mod, and version 7.8.3 of GHC. How can I get ghc-mod info to work?
显然, ghc-mod
需要您在源文件的开头放置一个module Something where
,以使其正常工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.