Commit Graph

892 Commits

Author SHA1 Message Date
Iavor S. Diatchki
efc4443707 Remove some unused code. See Cryptol.TypeCheck.AST.tSplitFun for the same.
XXX: more of this probably shoul go away
2015-06-19 16:13:18 -07:00
Iavor S. Diatchki
88f2567562 Notice unsolvable class instances; different error for unsolvable vs unsolved cts 2015-06-19 16:12:22 -07:00
Iavor S. Diatchki
9ae32e6b89 Check all constraints after defaulting.
Previously, we forgot to check that the chosen types satisfy the
class constraints.
2015-06-19 14:31:11 -07:00
Iavor S. Diatchki
f519fc31d5 Some more helper functions 2015-06-18 16:42:46 -07:00
Iavor S. Diatchki
4d3d252532 Comments: domains of partial type-functions 2015-06-18 15:09:35 -07:00
Iavor S. Diatchki
63c62b3cf8 Fix incorrect rule 2015-06-16 10:58:28 -07:00
Iavor S. Diatchki
343d8264ea Remove 'lg2 from types. Use width` instead. 2015-06-16 10:36:25 -07:00
Iavor S. Diatchki
6f57be6f3d Fix incorrect construction of substitution.
Fixes #235
2015-06-15 14:37:46 -07:00
Robert Dockins
398708dd41 Remove yucky uses of 'fromJust' 2015-06-11 19:00:24 -07:00
Trevor Elliott
81b29cb33c Ignore some doc comments 2015-06-10 21:45:44 -07:00
Trevor Elliott
47b3d59831 Add a test for doc strings 2015-06-10 21:45:31 -07:00
Trevor Elliott
c51a2815bb Add a test for qualified infix operators 2015-06-10 20:59:29 -07:00
Trevor Elliott
3f12176d52 Add docs for pattern bindings 2015-06-10 20:49:38 -07:00
Trevor Elliott
39eae330b1 Fix parsing of else branches and lambdas 2015-06-10 18:49:40 -07:00
Trevor Elliott
915379af0e Lex qualified names and operators 2015-06-10 18:30:10 -07:00
Trevor Elliott
274dfdfe75 Add documentation to properties 2015-06-10 14:27:04 -07:00
Trevor Elliott
9b7e46724c Give 100 fixity levels, and fix prelude fixity again
Also fix issue198, which had been accidentally updated while failing
2015-06-10 11:55:54 -07:00
Trevor Elliott
791876122d Fix for 7.8 2015-06-09 20:19:06 -07:00
Trevor Elliott
fb98af636a Slight test output change 2015-06-09 17:02:07 -07:00
Trevor Elliott
9fed5b30a3 Hide defaulting for !, not @@ 2015-06-09 16:54:38 -07:00
Trevor Elliott
6b6423c1e3 Fix a spelling bug 2015-06-09 16:54:17 -07:00
Trevor Elliott
88e44a5937 Location information changed in test 101 2015-06-09 14:45:51 -07:00
Trevor Elliott
f06b4deaea Update 226 output, as it uses :browse 2015-06-09 14:32:17 -07:00
Trevor Elliott
7e8940e9a8 Name changes in debug output 2015-06-09 14:27:43 -07:00
Trevor Elliott
9305e769d4 Properly resolve constraint fixity 2015-06-09 14:18:25 -07:00
Trevor Elliott
91616d93f6 Fix PP instance for infix type functions 2015-06-09 10:44:58 -07:00
Trevor Elliott
3fc9d66fc1 Change the precedence of xor 2015-06-09 09:35:35 -07:00
Trevor Elliott
e119b72efd More fixity, and add back special error messages 2015-06-08 17:54:02 -07:00
Trevor Elliott
0eefd18437 More consistent output in the REPL 2015-06-08 17:36:41 -07:00
Trevor Elliott
4b323b8446 Remove primitives 2015-06-08 16:00:14 -07:00
Trevor Elliott
ef3ac8cf4b Allow parenthesized operators with :help 2015-06-06 12:53:11 -07:00
Trevor Elliott
8eb401e548 Remove primitive type operators from the parser 2015-06-06 12:31:03 -07:00
Trevor Elliott
58e63fdd38 Begin work on fixity resolution at the type level 2015-06-05 23:36:51 -07:00
Trevor Elliott
745ea639af Start migrating primitives to the prelude 2015-06-05 15:47:12 -07:00
Trevor Elliott
016aeacfab Merge remote-tracking branch 'origin/master' into wip/prim-decls 2015-06-05 14:37:34 -07:00
Trevor Elliott
7eb7c93985 Have :help use the doc string, instead of built-in docs 2015-06-05 14:37:25 -07:00
Dylan McNamee
c27c91af3a fixed negative stepped sequence example (issue #234) in ProgrammingCryptol 2015-06-05 12:02:16 -07:00
Trevor Elliott
a736f740f9 Parse doc strings, and attach them to declarations 2015-06-04 18:35:12 -07:00
Trevor Elliott
b4c980bce0 Add fixity information to primitive bindings 2015-06-04 10:54:05 -07:00
Trevor Elliott
6bdbe52673 Add another test for unary operators 2015-06-04 10:37:28 -07:00
Trevor Elliott
2f45ce1a38 Fix the precedence of (-/~) again
Fixes #230
2015-06-04 10:32:08 -07:00
Trevor Elliott
b96859ba5f Implement + as a primitive in the prelude 2015-06-03 22:29:36 -07:00
Trevor Elliott
b1bbd41f83 Plumb through primitive declarations 2015-06-03 18:56:43 -07:00
Trevor Elliott
e8e5e30557 Fix parsing of unary operators 2015-06-03 17:50:22 -07:00
Trevor Elliott
e4258b4d2c Add a regression test for xor precedence 2015-06-03 15:36:18 -07:00
Trevor Elliott
3fc361cfb4 Fix the precedence of xor again 2015-06-03 15:28:03 -07:00
Iavor S. Diatchki
50866f5cf2 Don't generalize over variables that got defined
Fixes #229
2015-06-03 15:00:24 -07:00
Iavor S. Diatchki
55e464f7d6 Just wibbles 2015-06-03 14:58:44 -07:00
Aaron Tomb
da722c7076 Fix build with GHC 7.8 2015-06-03 12:52:28 -07:00
Trevor Elliott
ae6b5dc3e8 Add support for user-defined infix operators
Squashed commit of the following:

commit 9f03b7cd1a1f169ea192d735890fd6a3503ecb39
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:40:27 2015 -0700

    Add a test for user-defined infix operators

commit 31656a4640e8189b880fa1ce39779c07872ebe18
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:39:43 2015 -0700

    Forgot to initialize some fields in the parser

commit 73bcb2e5961691f2258f5a7a12ee2dc92d1a1ad3
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:20:40 2015 -0700

    Fix unnecessary panics in the renamer

commit 03cd8130901fb7aeb12d41cc03ce970ce6571423
Author: Trevor Elliott <trevor@galois.com>
Date:   Mon Jun 1 01:29:36 2015 -0700

    Remove a debug print

commit 2934a56b31d51ac971204d3fea9f62bf8829573d
Author: Trevor Elliott <trevor@galois.com>
Date:   Mon Jun 1 01:26:32 2015 -0700

    User-defined operators

commit 47f4b37fc75accaf0284addc2382c341167b8b6b
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 23:44:51 2015 -0700

    Parse signatures for infix operators

commit a1a11705c2eec6e669159756de2eb2cb19bcfa83
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 23:28:56 2015 -0700

    Plumb fixity information through

commit 56134ac0d9fb919f280dabfcdab6506195816340
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 22:03:55 2015 -0700

    Parse fixity declarations

commit f2db0ad5d47d478799dabf03a6cad9be7aec2191
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 16:00:57 2015 -0700

    Update test output for location changes

commit 15949018865d3ac8efca1a081334a7213c25775c
Merge: 1bd7f16 52f3a83
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:36:20 2015 -0700

    Merge remote-tracking branch 'origin/master' into wip/infix-operators

commit 1bd7f1602bd6bbf5693871f01ca65a4cf3ed3bf8
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:30:14 2015 -0700

    Forgot to consider EParens in translateExprToNumT

commit d63435270d5ca5bdf37584e4781a655a685c9c3b
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:29:47 2015 -0700

    Add | to the operator character set

commit 7be23372c4625bf20b8f8ccf94a148563417f6cb
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 14:49:07 2015 -0700

    Fix the printing of #Uniq variables

commit f9110e159aa0c3ae7450fe7a4db2a8d275d9bc1a
Author: Trevor Elliott <trevor@galois.com>
Date:   Thu May 28 17:04:26 2015 -0700

    Fix some failing tests

commit 0582fd08cc402c7bfd2de2c02df14fa77906e37e
Author: Trevor Elliott <trevor@galois.com>
Date:   Thu May 28 16:12:18 2015 -0700

    Remove more primitives from the parser

commit f5dafd1ea7954b64f7949c754e0c94abd2598679
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed May 27 18:02:52 2015 -0700

    Do fixity resolution during renaming
2015-06-03 11:42:33 -07:00