Commit Graph

5434 Commits

Author SHA1 Message Date
Jan de Muijnck-Hughes
5ea6aa0520 Address semantic differences in putting things to STDOUT.
The changes are as follows:

+ `print` is for putting showable things to STDOUT.
+ `printLn` is for putting showable things to STDOUT with a new line
+ `putCharLn` for putting a single character to STDOUT, with a new line.

Effects has been updated accordingly.
2015-03-06 17:26:33 +00:00
David Christiansen
b56f5c17f2 Merge pull request #1979 from david-christiansen/dsl-dollars
Allow DSLs to be applied with $
2015-03-05 15:33:35 +01:00
David Raymond Christiansen
2e93a50f05 Allow DSLs to be applied with $
Given a DSL stlc with the usual definition, in the past it was necessary
to write

    stlc (\x => x)

because

    stlc $ \x => x

didn't work. This makes that happen. This is especially nice for DSLs
that include do-blocks.
2015-03-05 13:45:50 +01:00
David Christiansen
32171edd72 Merge pull request #1977 from jfdm/stdio-effect-print
Added 'Print' functions to STDIO effect.
2015-03-05 12:39:25 +01:00
Jan de Muijnck-Hughes
49b2d30e14 Added 'Print' functions to STDIO effect.
The STDIO effect was missing a `print` function, that calls `show` on the passed in argument.
This missing function was added with in-place print and print line varients.
2015-03-05 09:53:34 +00:00
David Christiansen
97bc9dfc0c Merge pull request #1973 from david-christiansen/wip/tactical
Updates to new-style tactics
2015-03-02 22:58:29 +01:00
David Raymond Christiansen
a1c42ad4c9 Add "rewrite" to new-style tactics 2015-03-02 22:02:36 +01:00
David Raymond Christiansen
0550c8632c Merge remote-tracking branch 'refs/remotes/upstream/master' into wip/tactical 2015-03-02 18:13:02 +01:00
David Christiansen
3233dd1c3f Merge pull request #1972 from david-christiansen/ahmadsalim-feature/betteroperatormessage
Update error message in reg050 from PR #1938
2015-03-02 18:10:23 +01:00
David Raymond Christiansen
98c36ee022 Push source locations around correctly for new-style tactics 2015-03-02 17:17:37 +01:00
David Raymond Christiansen
7c1dc9808e Prevent "(%runTactics foo)" from being an operator
Previously it was parsed as the application of an unknown operator (%)
in a section.
2015-03-02 16:57:28 +01:00
David Raymond Christiansen
e9ff42dc1b Desugar in default argument values 2015-03-02 16:57:13 +01:00
David Raymond Christiansen
02221874b3 Slightly more useful error messages 2015-03-02 16:56:59 +01:00
David Raymond Christiansen
c7260221d5 Whitespace cleanup 2015-03-02 16:56:49 +01:00
David Raymond Christiansen
1d64b2c586 Finalise terms before evaluation in new-style tactics
This prevents lots of mysterious-looking errors where variables don't
get set in binds.
2015-03-02 16:54:40 +01:00
David Raymond Christiansen
212c0bd431 Merge branch 'ahmadsalim-feature/betteroperatormessage' into wip/tactical 2015-03-02 16:04:50 +01:00
David Raymond Christiansen
c70b2a310a Merge branch 'feature/betteroperatormessage' of https://github.com/ahmadsalim/Idris-dev into ahmadsalim-feature/betteroperatormessage
Conflicts:
	test/reg050/expected
2015-03-02 16:02:41 +01:00
David Raymond Christiansen
1e488afc95 Add new-style tactics for getting source locations 2015-03-02 15:14:07 +01:00
David Raymond Christiansen
3d79f1ba65 Make Quotable polymorphic on quotation type
Quotable now accepts an additional parameter: the goal type to quote
to. This allows it to be used for both Raw and TT quotations.
Unfortunately, the bodies of the instances are mostly copy-pasted, but I
couldn't find a way to re-use the code because the elaboration of the
quasiquotes is not at all the same.
2015-03-02 14:45:18 +01:00
David Raymond Christiansen
20e602829a Merge branch 'master' into wip/tactical 2015-03-02 14:02:33 +01:00
David Christiansen
8ab9f72aa6 Merge pull request #1971 from david-christiansen/chetant-dsl_varnames
Named lambda, let, and pi in DSL block
2015-03-02 13:52:51 +01:00
David Raymond Christiansen
c0d58b3282 Add CHANGELOG note on DSL block updates 2015-03-02 12:51:23 +01:00
David Raymond Christiansen
3c05bcd075 Merge branch 'dsl_varnames' of https://github.com/chetant/Idris-dev into chetant-dsl_varnames 2015-03-02 12:42:33 +01:00
David Christiansen
5e1ef78b78 Merge pull request #1970 from david-christiansen/operator-renames
The Great Operator Rename
2015-03-02 12:28:06 +01:00
David Raymond Christiansen
6f25fbe6cc Update reg050 for <$> as fmap alias 2015-03-02 11:28:04 +01:00
David Raymond Christiansen
a2c7b15902 Document the Great Operator Rename in the CHANGELOG 2015-03-02 11:01:03 +01:00
David Raymond Christiansen
ff7214eff1 Add <$> as an alias for map 2015-03-02 10:57:14 +01:00
David Raymond Christiansen
48d6a6bcf9 Update for renamed operators 2015-03-02 10:57:06 +01:00
Tenor Biel
2d563b0278 Changed <$ and $> to <* and *> 2015-03-02 10:09:08 +01:00
Tenor Biel
b5f2e4df50 Changed test expectations to support new Prelude operators 2015-03-02 10:08:41 +01:00
Tenor Biel
4d16a95d42 Changed desugaring behavior to use <*> instead of <$> 2015-03-02 10:08:31 +01:00
Tenor Biel
44bdf1dd40 Changed (<$>) to (<*>) 2015-03-02 10:08:22 +01:00
Chetan Taralekar
3b5790caf9 Named lambda,let,pi in dsl block 2015-03-01 22:34:17 -06:00
Ahmad Salim Al-Sibahi
769bae3cb4 Merge branch 'master' of https://github.com/idris-lang/Idris-dev into feature/betteroperatormessage
Conflicts:
	test/reg050/expected
2015-03-01 20:54:37 +01:00
Ahmad Salim Al-Sibahi
ef906d30a0 Fixed test error due to improved error message (the test had expected the old
message)
2015-03-01 20:44:28 +01:00
Edwin Brady
41711c7e20 stripLinear needs to check dependent pairs
Previously not loooking for patterns to hide in dependent pairs, so some
things end up being detected as total which really aren't.
2015-03-01 13:47:13 +00:00
David Christiansen
5475fe3dae Merge pull request #1963 from david-christiansen/multi-ghc
Add multiple GHC versions to Travis
2015-02-27 17:45:31 +01:00
David Raymond Christiansen
d8142b0d92 Add multiple GHC versions to Travis 2015-02-27 16:19:39 +01:00
David Christiansen
92e39853b2 Merge pull request #1962 from david-christiansen/issue/1958
Simplify comment parser
2015-02-27 15:18:08 +01:00
David Raymond Christiansen
5f2a3b5d20 Simplify comment parser
Since we no longer have special documentation comments, the comment
parser can be much simpler. The simpler version also works better - it
fixes #1958.
2015-02-27 14:32:02 +01:00
David Christiansen
54f0cc31f8 Merge pull request #1961 from david-christiansen/issue/idris-mode-299
Fix :unlet and the IDE protocol
2015-02-27 14:00:56 +01:00
David Christiansen
24d0617fb0 Merge pull request #1955 from jfdm/citation
Added a citation file.
2015-02-27 13:48:10 +01:00
David Christiansen
fa5a04789d Merge pull request #1960 from david-christiansen/issue/1959
Trace loaded file spans for empty modules
2015-02-27 13:47:48 +01:00
David Raymond Christiansen
8688f43b3e Fix :unlet and the IDE protocol
Previously, :unlet was stating that it had more output when it was done,
which could lead IDE clients to hang while waiting for it.

Fixes https://github.com/idris-hackers/idris-mode/issues/299
2015-02-27 13:17:32 +01:00
David Raymond Christiansen
15a76fff19 Trace loaded file spans for empty modules
Previously, the "reload IBC" step would obliterate the span, causing
problems for IDE clients.

Fixes #1959.
2015-02-27 12:30:10 +01:00
Jan de Muijnck-Hughes
3b57c916cf Added a citation file. 2015-02-26 16:35:38 +00:00
David Christiansen
b32de5cad2 Merge pull request #1947 from melted/this_branch_is_sponsored_by_the_society_for_elimination_of_fancy_typography
Replace a fancy apostrophe with a basic ASCII one
2015-02-25 07:29:03 +01:00
David Christiansen
4f88433bd0 Merge pull request #1946 from Heather/encoding
disable windows specific UTF8 encoding
2015-02-25 07:28:40 +01:00
Niklas Larsson
f70afab7d9 Replace a fancy apostrophe with a basic ASCII one
A Unicode apostrophe will cause problems with locales with
non-Unicode text encodings, like CP850 that is default in
Windows terminals.
2015-02-24 22:54:21 +01:00
Ahmad Salim Al-Sibahi
dcbab5e67b Fixed failing regression test due to new syntax extension rules 2015-02-24 21:42:00 +01:00