Tôi đã cài đặt Haskell qua trình cài đặt được tạo sẵn v6.8.2.Lỗi biên dịch Haskell Parsec
Khi cố gắng để biên dịch tập tin mẫu này với GHC
module Main where
import Text.ParserCombinators.Parsec
import System.Environment
main :: IO()
main = do args <- getArgs
putStrLn ("Hello")
tôi nhận được lỗi sau:
D:\src\Haskell>ghc -o read read.hs
ghc -o read read.hs
read.o(.text+0x1b5):fake: undefined reference to `__stginit_parseczm2zi1zi0zi0_TextziParserCombinatorsziParsec_'
collect2: ld returned 1 exit status
Tôi đã cài đặt Parsec qua cabal.
Có ai có ý tưởng gì về điều gì sai không?
Điều này dường như không hoạt động, cảm ơn rất nhiều – chollida