view demo/metaform2.ur @ 2190:22117edf8fd3

After a tricky debugging session, limit visibility of type-class instances from anonymous modules
author Adam Chlipala <>
date Sun, 01 Nov 2015 16:33:14 -0500
parents 6302b10dbe0e
line wrap: on
line source
structure MM = Metaform.Make(struct
                                 val names = {X = "x", Y = "y"}

fun diversion () = return <xml><body>
  Welcome to the diversion.

fun main () = return <xml><body>
  <li> <a link={diversion ()}>See something shiny!</a></li>
  <li> <a link={MM.main ()}>Fill out a form!</a></li>