# HG changeset patch # User Ziv Scully # Date 1410650167 14400 # Node ID ef766ef6e2428977800d6801690da78d2a4aa8e6 # Parent 69c0f36255cb01ab8d28ad7847816df0325423ce# Parent 7391722042142e75cbbea212cc8526b98ecf90fa Merge. diff -r 69c0f36255cb -r ef766ef6e242 .hgignore --- a/.hgignore Sat May 31 22:23:25 2014 -0400 +++ b/.hgignore Sat Sep 13 19:16:07 2014 -0400 @@ -66,6 +66,8 @@ ltmain.sh missing +tests/*.db + syntax: regexp ^Makefile$ diff -r 69c0f36255cb -r ef766ef6e242 CHANGELOG --- a/CHANGELOG Sat May 31 22:23:25 2014 -0400 +++ b/CHANGELOG Sat Sep 13 19:16:07 2014 -0400 @@ -1,3 +1,47 @@ +======== +20140830 +======== + +- New HTML attribute: 'role' +- Bug fixes + +======== +20140819 +======== + +- Improvements to HTML model +- Bug fixes and optimization improvements + +======== +20140807 +======== + +- New .urp directive: 'file' +- Support for 'aria-*' attributes in HTML +- Default value of 'jsFunc' for less-safe FFI +- Client-side implementation of Basis function 'strsindex' +- Bug fixes and improvements to type inference and documentation + +======== +20140704 +======== + +- New syntactic shorthand for antiquoting subqueries +- New Top members: max and min +- 'sql_injectable_prim' instance for 'url' +- Bug fixes + +======== +20140615 +======== + +- New syntactic sugar: 'let E where DS end' for 'let DS in E end' +- Add 'onChange' attributes to more tags. +- New standard library function: String.trim +- Start treating Ur/Web tag + + diff -r 69c0f36255cb -r ef766ef6e242 tests/data_attr.ur --- a/tests/data_attr.ur Sat May 31 22:23:25 2014 -0400 +++ b/tests/data_attr.ur Sat Sep 13 19:16:07 2014 -0400 @@ -1,5 +1,5 @@ fun dynd r = return -
How about that?
+
How about that?
fun main () : transaction page = @@ -7,7 +7,7 @@ a <- source ""; v <- source ""; return -
Whoa there, cowboy!
+
Whoa there, cowboy!

@@ -20,7 +20,7 @@ = + +
+ +
diff -r 69c0f36255cb -r ef766ef6e242 tests/rpchan.urs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/rpchan.urs Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,1 @@ +val main : unit -> transaction page diff -r 69c0f36255cb -r ef766ef6e242 tests/sqlurl.ur --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/sqlurl.ur Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,4 @@ +table t : { Url : url } + +task initialize = fn () => + dml (INSERT INTO t (Url) VALUES ({[bless "http://www.google.com/"]})) diff -r 69c0f36255cb -r ef766ef6e242 tests/sqlurl.urp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/sqlurl.urp Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,6 @@ +database dbname=test +sql sqlurl.sql +rewrite url Sqlurl/* +allow url http://www.google.com/ + +sqlurl diff -r 69c0f36255cb -r ef766ef6e242 tests/tags.ur --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/tags.ur Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,26 @@ +table images : { Id : int, Content : blob } +table tags : { Id : int, Tag : string } + +datatype mode = Present | Absent +type condition = { Tag : string, Mode : mode } + +type tag_query = sql_query [] [] [] [Id = int] + +fun addCondition (c : condition) (q : tag_query) : tag_query = + case c.Mode of + Present => (SELECT I.Id AS Id + FROM ({{q}}) AS I + JOIN tags ON tags.Id = I.Id AND tags.Tag = {[c.Tag]}) + | Absent => (SELECT I.Id AS Id + FROM ({{q}}) AS I + LEFT JOIN tags ON tags.Id = I.Id AND tags.Tag = {[c.Tag]} + WHERE tags.Tag IS NULL) + +fun withConditions (cs : list condition) : tag_query = + List.foldl addCondition (SELECT images.Id AS Id FROM images) cs + +fun main (cs : list condition) : transaction page = + x <- queryX (withConditions cs) (fn r =>
  • {[r.Id]}
  • ); + return + {x} + diff -r 69c0f36255cb -r ef766ef6e242 tests/tags.urp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/tags.urp Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,6 @@ +database dbname=test +sql tags.sql +rewrite url Tags/* + +$/list +tags diff -r 69c0f36255cb -r ef766ef6e242 tests/wackyunif.ur --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/wackyunif.ur Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,2 @@ +val concatX [ctx] [use] : _ -> _ ctx use _ = + List.foldl join diff -r 69c0f36255cb -r ef766ef6e242 tests/wackyunif.urp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/wackyunif.urp Sat Sep 13 19:16:07 2014 -0400 @@ -0,0 +1,2 @@ +$/list +wackyunif diff -r 69c0f36255cb -r ef766ef6e242 tests/web.png Binary file tests/web.png has changed