Import Upstream version 20180207
[hcoop/debian/mlton.git] / basis-library / primitive / prim-string.sml
CommitLineData
7f918cf1
CE
1(* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9(* Primitive names are special -- see atoms/prim.fun. *)
10
11structure Primitive = struct
12
13open Primitive
14
15structure String8 =
16 struct
17 open String8
18
19 val idFromWord8Vector =
20 _prim "Word8Vector_toString": Word8.word vector -> string;
21 val idToWord8Vector =
22 _prim "String_toWord8Vector": string -> Word8.word vector;
23 end
24
25end