Skip to content

Instantly share code, notes, and snippets.

@atondwal
Created March 26, 2015 04:41
Show Gist options
  • Save atondwal/3398fb4258b894479666 to your computer and use it in GitHub Desktop.
Save atondwal/3398fb4258b894479666 to your computer and use it in GitHub Desktop.
{-@ f :: {v: Int | v >=0 } @-}
f :: Int
f = 1
{-@ g :: {v: Int | v != 0} -> Int @-}
g :: Int -> Int
g x = 3 `quot` x
h :: Int
h = g f
main :: IO ()
main = print h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment