ucsd-progsys/liquidhaskell

The sort GHC.Natural.Natural is not numeric

Open

#1,500 创建于 2019年5月28日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Haskell (1,306 star) (157 fork)batch import
good first issue

描述

in Control.Concurrent.STM.TBQueue

function newTBQueue :: Natural -> STM (TBQueue a) requires a "Natural" argument.

LH complains that this cannot be compared (==) to an int.

Adding {-@ embed GHC.Natural.Natural as int @-} solved the problem. But, could this be added to the specs in "include/GHC" ?


liquid: LiquidHaskell Version 0.8.6.0 (compiled from develop)

贡献者指南

The sort GHC.Natural.Natural is not numeric · ucsd-progsys/liquidhaskell#1500 | Good First Issue