Multiple refinements

10 views
Skip to first unread message

Alex Rozenshteyn

unread,
Feb 23, 2016, 3:53:46 PM2/23/16
to liquidhaskell
Liquid Haskell does not support this feature, right?

{-@ aNumber :: {v:Int | Even v} @-}
{-@ aNumber :: {v:int | Nat v}  @-}
aNumber
:: Int
aNumber
= 8

I know it's not particularly useful here, but for specifying multiple invariants on functions, I think it reads more cleanly than trying to fit them all into one signature.

Ranjit Jhala

unread,
Feb 23, 2016, 4:11:23 PM2/23/16
to Alex Rozenshteyn, liquidhaskell
That is correct. Indeed, this would be an interesting feature to have! 

--
You received this message because you are subscribed to the Google Groups "liquidhaskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liquidhaskel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages