Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. -*- mode: compilation; default-directory: "~/Learning/Beluga/examples/" -*-
  2. Compilation started at Thu Jul 24 16:22:51
  3.  
  4. /Users/agmu/Lib/beluga-0.7-20140602/bin/beluga /Users/agmu/Learning/Beluga/examples/nat.bel
  5. sed: option requires an argument -- e
  6. usage: sed script [-Ealn] [-i extension] [file ...]
  7.        sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
  8.  
  9. ## Type Reconstruction: /Users/agmu/Learning/Beluga/examples/nat.bel ##
  10.  
  11. rec add : [ |- nat] -> [ |- nat] -> [ |- nat] =
  12. fn x => fn y =>
  13.   case x of
  14.   | [[ |- z]  :  ]   =>
  15.      y
  16.  
  17.   | {N :: [ |- nat]}
  18.     [[ |- succ (N )]  :  ]   =>
  19.       (case add ([ |- N ]) y of
  20.        | {N :: [ |- nat]}  {R :: [ |- nat]}
  21.          [[ |- R ]  :  |- N = N ]   =>
  22.           [ |- succ (R )] : [ |- nat]
  23.        )
  24.  
  25.  
  26. ## Type Reconstruction done: /Users/agmu/Learning/Beluga/examples/nat.bel  ##
  27.  
  28.  
  29.  
  30. Compilation finished at Thu Jul 24 16:22:51
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement