diff options
author | Wojciech Meyer <wojciech.meyer@gmail.com> | 2013-03-09 16:03:22 +0000 |
---|---|---|
committer | Wojciech Meyer <wojciech.meyer@gmail.com> | 2013-03-09 16:03:22 +0000 |
commit | 6d0ede7f608306a6a914e55f1ea7a1bb543c0da9 (patch) | |
tree | 946f4a57056b1507d7e6351824afdd19f31bc900 | |
parent | 6ace324761cec481d7490a4f93fe940c407ef185 (diff) | |
download | ocaml-6d0ede7f608306a6a914e55f1ea7a1bb543c0da9.tar.gz |
typo
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/monadic_let@13388 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | testsuite/tests/monadic-let/monadic_let.ml | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -160,7 +160,7 @@ Language features: Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. -- Monadic notation with let! syntax. Expects standard `bind', `ret' +- Monadic notation with let* syntax. Expects standard `bind', `ret' and `fail' bound in current environment. Supports irrefutable patterns with default fail interface, where failing argument can be defined in with clause. Supports direct optimisations of the created diff --git a/testsuite/tests/monadic-let/monadic_let.ml b/testsuite/tests/monadic-let/monadic_let.ml index a43345d3b0..e3e3e3b4e7 100644 --- a/testsuite/tests/monadic-let/monadic_let.ml +++ b/testsuite/tests/monadic-let/monadic_let.ml @@ -13,13 +13,13 @@ module IdentityMonad = struct let bind x f = f x let ret x = x - let fail x = ret + let fail s = failwith s end module ListMonad = struct let bind x f = f x let ret x = x - let fail x = ret + let fail s = failwith s end module ExceptionMonad = struct |