How to avoid “‘main’ is not defined in module ‘Main’” when using syntastic

后端 未结 2 974
-上瘾入骨i
-上瘾入骨i 2021-02-05 03:08

I\'m trying to write a module in Haskell. It does not have a main because it\'s not meant to be a stand-alone program.

I just started using syntastic, and i

2条回答
  •  無奈伤痛
    2021-02-05 03:58

    Though it is a late answer, for the sake of completion adding the following will stop the warning.

    main :: IO ()
    main = return ()
    

提交回复
热议问题