Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / field.fun
CommitLineData
7f918cf1
CE
1(* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8functor Field(F: FIELD_STRUCTS): FIELD =
9struct
10
11structure U = Ring(F)
12
13open F U
14
15val op / = fn (x, y) => x * inverse y
16
17end