Adam C. Foltzer
f22cbdc4eb
more exports
2015-07-01 12:37:51 -04:00
Adam C. Foltzer
53201d7ac3
additional exports for cryptol-server
2015-07-01 12:37:51 -04:00
Adam C. Foltzer
494bf6d92e
tweak patch in 170e5953
to work for 7.8; add test
2015-07-01 12:31:37 -04:00
Trevor Elliott
170e59530b
Resolve includes relative to the file that includes them
...
Fixes #202
2015-06-30 10:54:18 -07:00
Trevor Elliott
034f7d12dd
Fix a potential problem with infixr type operators
2015-06-30 10:31:13 -07:00
Trevor Elliott
3117d07a79
Observe parens when resolving type operators
...
Fixes #254
2015-06-30 10:19:45 -07:00
Trevor Elliott
fafaf4ca26
Fix right-associative nesting for expressions
2015-06-29 16:54:58 -07:00
Trevor Elliott
4d469fa2ce
Update test output
2015-06-29 16:34:11 -07:00
Trevor Elliott
398f5d7196
Fix fixity resolution
...
Resolve fixity bottom-up, to allow low-precedence operators the chance to bubble
all the way out.
2015-06-29 16:00:36 -07:00
Brian Huffman
458c547d5b
ListSel on VWord in symbolic backend uses correct endian-ness.
...
Fixes #251 .
2015-06-26 14:09:29 -07:00
Aaron Tomb
55154aff2b
Allow use of Cabal 1.18 during build
...
This eases the build using Stack and GHC 7.8, since GHC 7.8 comes with
Cabal 1.18.
2015-06-26 13:45:26 -07:00
Iavor S. Diatchki
c791669c76
Fix typo
2015-06-25 10:59:30 -07:00
Iavor S. Diatchki
8fe9bcba08
Correct the rule for equality with constant on division
2015-06-24 14:33:01 -07:00
Iavor S. Diatchki
e7728c2b22
Add a case for Not
. Fixes #249 .
...
This may happen when we check enumerations, because we emit constraints
such as `x /= y`, which ends up looking like `Not (x == y)`.
2015-06-24 11:34:20 -07:00
Iavor S. Diatchki
91ebb1ca2b
Make fin
decisions first.
2015-06-24 11:19:52 -07:00
Iavor S. Diatchki
c4c587d14b
Add missing case for max
.
...
Apparently this got lost at some point!
2015-06-22 15:00:14 -07:00
Iavor S. Diatchki
6785d7078c
Print some information, even if there is no doc comment
2015-06-22 11:23:40 -07:00
Iavor S. Diatchki
74714f3071
Fixup/changes to parsing comments
...
This addresses some issues where things like /**** were parsed as an
operator, leading to parse errors with some comments. The intended
behavior is as follows:
1. /* with no more stars starts a normal block comment
2. /**+ (i.e., 2 or more starts) starts a document comment
3. *+/ (i.e., any number of stars, follwed by /) ends any comment
4. /*+/ is a block coment (e.g., /*******/) is a block comment
2015-06-22 11:23:22 -07:00
Iavor S. Diatchki
8429d294e6
Add a test for multi-if
2015-06-22 09:25:45 -07:00
Iavor S. Diatchki
8e1f8f5b68
Merge branch 'master' of github.com:GaloisInc/cryptol
2015-06-22 09:20:16 -07:00
Iavor S. Diatchki
6ddec6d128
Reverse alternatives in multi-way if
.
...
Fixes #245
2015-06-22 09:20:08 -07:00
Trevor Elliott
5ff6005bed
Allow operators to use '\'
...
Fix #246
2015-06-21 01:53:52 +01:00
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