val dir_type (ds: list dir) : Tot Type0
val dir_type (ds: list dir) : Tot Type0
let rec dir_type (ds:list dir) : Tot Type0 =
  match ds with
  | [] -> string
  | Lit c :: ds' -> dir_type ds'
  | Arg a :: ds' -> arg_type a -> Tot (dir_type ds')
(*
   Copyright 2008-2018 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)
module SimplePrintf

open FStar.Char
open FStar.String

// arguments to printf
type arg =
  | Bool
  | Int
  | Char
  | String

// directives to printf
type dir =
  | Lit of char
  | Arg of arg

let arg_type (a:arg) : Tot Type0 =
  match a with
  | Bool   -> bool
  | Int    -> int
  | Char   -> char
  | String -> string
/
prims.fst.checked FStar.String.fsti.checked FStar.Pervasives.fsti.checked FStar.Char.fsti.checked
SimplePrintf.fst
ds: Prims.list SimplePrintf.dir -> Type0
Prims.list SimplePrintf.dir Prims.string FStar.String.char SimplePrintf.dir_type SimplePrintf.arg SimplePrintf.arg_type
let rec dir_type (ds: list dir) : Tot Type0 =
  
match ds with
| [] -> string
| Lit c :: ds' -> dir_type ds'
| Arg a :: ds' -> arg_type a -> Tot (dir_type ds')