我正在使用yesod-simple模板構建一個簡單的web應用程序(稱爲pkb)。我需要一堆沒有LTS-6.25最新版本的庫(當前默認爲yesod-simple),所以我將解析器更改爲stack.yaml中的lts-7.9。我也看了this issue with GHC 8.0.1和它周圍的成功合作,加入 {-# LANGUAGE NoDisambiguateRecordFields #-}
{
對不起,如果這是一個新手問題。我試圖從Haskell調用一個C函數。我目前在Windows上使用堆棧。我開始用下面簡單的例子,效果很好: import Prelude hiding (sin)
import Foreign.C -- get the C types
-- pure function
foreign import ccall "sin" c_sin :: CDoub