I'm trying to run my main file and it says
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Here's my related code
module Main where
import System.IO
import System.Environment
main ∷ IO ()
main = do
I'm trying to run my main file and it says
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Here's my related code
module Main where
import System.IO
import System.Environment
main ∷ IO ()
main = do
You must enable the UnicodeSyntax
extension to use ∷
. Try {-# LANGUAGE UnicodeSyntax #-}
at the top of your file or using two colons like main :: IO ()
.
do
something in it.