ucsd-progsys/liquidhaskell

The sort GHC.Natural.Natural is not numeric

Open

#1,500 opened on May 28, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Haskell (157 forks)batch import
good first issue

Repository metrics

Stars
 (1,306 stars)
PR merge metrics
 (Avg merge 2d 18h) (12 merged PRs in 30d)

Description

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)

Contributor guide