我想在本地使用 Hoogle,这样我就可以在我的一个项目上运行搜索查询。有一些文档 [ here ],但我不知道如何让它工作。它说要运行 Haddock,但 haddock 没有给出任何输出,只会吐出下面复制的警告。我还没有projectname.cabal文件,所以我不能使用该runhaskell Setup haddock --hoogle
命令。
haddock coverage for ./Util.hs: 0/8 0%
haddock coverage for ./Blockify.hs: 0/16 0%
haddock coverage for ./Interpreter.hs: 0/9 0%
haddock coverage for AbstractSummarizer.hs: 0/10 0%
Warning: Util: could not find link destinations for:
GHC.Base.String GHC.Types.IO GHC.ST.ST Data.StateRef.Types.HasRef GHC.Base.Monad Control.Applicative.Applicative GHC.Types.Int Control.Monad.Trans.State.Lazy.State GHC.Bool.Bool GHC.Types.Double GHC.Show.Show Data.Vector.Vector Data.Map.Map System.Process.Internals.CreateProcess
Warning: Blockify: could not find link destinations for:
GHC.Types.Int GHC.Classes.Eq Data.Data.Data GHC.Classes.Ord GHC.Read.Read GHC.Show.Show Data.Typeable.Typeable GHC.Base.String Data.Typeable.Typeable1 GHC.Num.Num Control.Monad.Trans.State.Lazy.State
Warning: Interpreter: could not find link destinations for:
Data.StateRef.Types.Ref GHC.Types.Int GHC.Classes.Eq Data.Data.Data GHC.Classes.Ord GHC.Read.Read GHC.Show.Show Data.Typeable.Typeable Data.Typeable.Typeable1 Control.Applicative.Applicative GHC.Base.Monad Data.Map.Map Data.Vector.Vector GHC.Base.Functor Data.Maybe.Maybe
Warning: AbstractSummarizer: could not find link destinations for:
GHC.Types.Int GHC.Classes.Eq GHC.Show.Show Data.Sequence.Seq GHC.Classes.Ord GHC.Read.Read