view tests/concat.ur @ 1395:f53ec50097a5

Fix type-checking of views to match change to sql_query type
author Adam Chlipala <adam@chlipala.net>
date Sat, 15 Jan 2011 15:06:33 -0500
parents c7b9a33c26c8
children
line wrap: on
line source
functor Make(M : sig
                 con ts :: {(Type * Type)}
                 val tab : sql_table (map fst ts) []
                 val cols : $(map (fn p => p.2 -> string) ts)
             end) = struct
end

table t : {A : string}

open Make(struct
              val tab = t
              val cols = {A = fn p : {B : string, C : string} => p.B ^ p.C}
          end)