Skip to content

Instantly share code, notes, and snippets.

@exterm
Last active December 14, 2015 14:49
Show Gist options
  • Save exterm/5103797 to your computer and use it in GitHub Desktop.
Save exterm/5103797 to your computer and use it in GitHub Desktop.
Provoke compile time errors in liquid Haskell
{-@ error2 :: {v: String | false } -> a @-}
error2 :: String -> a
error2 = error
-- a program using this function typechecks exactly when LiquidHaskell can prove that the
-- function error2 is never called.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment