Advertisement
Guest User

Untitled

a guest
Feb 11th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.31 KB | None | 0 0
  1. open V1_LWT
  2. open Lwt
  3.  
  4. module Main (C: CONSOLE) (B: BLOCK) =
  5.   struct
  6.  
  7.     module F = Fat.Fs.Make (B) (Io_page)
  8.  
  9.     let start c b =
  10.       C.log c "Create an empty file foo";
  11.       match_lwt F.create b "foo" with
  12.       | `Error _ -> failwith "Cannot create empty file."
  13.       | `Ok () -> return ()
  14.  
  15.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement