Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diverging program proclaimed safe #1332

Closed
formrre opened this issue Jun 13, 2018 · 2 comments
Closed

Diverging program proclaimed safe #1332

formrre opened this issue Jun 13, 2018 · 2 comments

Comments

@formrre
Copy link

formrre commented Jun 13, 2018

Playing around with examples from:
https://mail.haskell.org/pipermail/haskell-cafe/2010-January/072600.html

I came up with this minimal modification of the example, which Liquid Haskell proclaims safe, yet it doesn't terminate.

data Fix a = Fix {unFix :: Fix a -> a}

absurd :: (Show a) => a -> a
absurd _ = unFix (Fix (\x -> unFix x x)) (Fix (\x -> unFix x x))

main = putStrLn $ show (absurd "a")
@ranjitjhala
Copy link
Member

Yes, this is a longstanding issue, c.f. #159

@nikivazou perhaps we should button down and fix it :)

@ranjitjhala
Copy link
Member

PS: thanks @formrre for bumping it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants