Commit Graph

7 Commits

Author SHA1 Message Date
David Raymond Christiansen
6c4553c31f Make --quiet imply non-verbosity
This causes Idris to not emit messages about "Type checking ...." while
in quiet mode, which improves the portability of tests to Windows (due
to the slash facing the other way there). It also makes tests a bit more
robust with regards to their source files changing names.
2015-04-01 17:48:17 +02:00
Edwin Brady
d5377be628 New language-dependent FFI
More documentation to follow, but in brief:
- IO is now a synonym of IO' FFI_C
- IO' is parameterised over an ffi description, which explains which
  types are allowed in foreign calls, and what a foreign call target is
  (in C, that's a String giving the function name, for example)
- New function "foreign" for building a foreign call, given an ffi
  description, call target, and the type of the call. The type is enough
  to build a structure which the compiler uses to generate the call.

The type of main now needs to be IO' x (), where x can be any FFI
description.

There is currently only an ffi description for C; Javascript will
follow. FFI_C should also work for the llvm backend (it's really about
the calling convention, not the backend specifically). Small changes
will be needed to the various code generators.
2015-01-17 19:08:33 +00:00
David Raymond Christiansen
3b9ce1cad7 Avoid pollution of test case with ANSI codes
Apparently, Curses was outputting system-specific terminal codes which
caused test cases to fail some places. This test update makes it stop by
not running the interactive REPL.
2014-02-04 13:27:57 +01:00
David Raymond Christiansen
58f481ce65 Remove colour codes from ffi001 expected - fixed 2014-02-04 12:03:48 +01:00
David Raymond Christiansen
264f773886 Remove colour codes from ffi001 expected 2014-02-04 12:01:45 +01:00
David Raymond Christiansen
ec1b1f3616 Test updates for executor and type provider update 2014-02-03 11:07:11 +01:00
Edwin Brady
1d2fc7f8e0 Categorise tests 2014-01-30 17:24:08 +00:00