Open CodiePP opened 5 years ago
in Control.Concurrent.STM.TBQueue
Control.Concurrent.STM.TBQueue
function newTBQueue :: Natural -> STM (TBQueue a) requires a "Natural" argument.
newTBQueue :: Natural -> STM (TBQueue a)
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" ?
{-@ embed GHC.Natural.Natural as int @-}
liquid: LiquidHaskell Version 0.8.6.0 (compiled from develop)
develop
Hi @CodiePP -- yes sure, you could add this. Do you want to submit a PR?
And thanks!!
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
)