Skip to content

Instantly share code, notes, and snippets.

@NobbZ
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save NobbZ/68ea30b8e323ceafd212 to your computer and use it in GitHub Desktop.

Select an option

Save NobbZ/68ea30b8e323ceafd212 to your computer and use it in GitHub Desktop.
Does not compile because `main` does not see `y`
module Main
main : IO ()
main = putStrLn (show y)
y : Int
y = 1
@NobbZ

NobbZ commented Jun 12, 2014

Copy link
Copy Markdown
Author

Trying to compile the above yields following message:

$ idris main.idr -o test
main.idr:4:23:When elaborating right hand side of main:
When elaborating an application of function Prelude.show:
        No such variable y

$ idris --version
0.9.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment