Haddock 丢失部分文档?
我有以下功能:
-- | Exponential moving average.
ema :: (Fractional a)
=> a -- ^ Alpha
-> [a] -- ^ Input data
-> [a] -- ^ Output
ema alpha xs = scanl1 (\a b -> a+(alpha*(b-a))) xs
Haddock 接受上述内容并生成以下 HTML:
ema
:: Fractional a
=> a Input data
-> [a] Output
-> [a]
Exponential moving average.
“Alpha” 发生了什么?
I have the following function:
-- | Exponential moving average.
ema :: (Fractional a)
=> a -- ^ Alpha
-> [a] -- ^ Input data
-> [a] -- ^ Output
ema alpha xs = scanl1 (\a b -> a+(alpha*(b-a))) xs
Haddock takes the above and generates the following HTML:
ema
:: Fractional a
=> a Input data
-> [a] Output
-> [a]
Exponential moving average.
What happened to "Alpha" ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能使用的是 haddock 2.6.0。升级到 2.7.2 修复了此问题。
You're probably using haddock 2.6.0. Upgrading to 2.7.2 fixes this issue.