Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[enhance] Date: adding @stringifiers for Date.month & Date.weekday

  • Loading branch information...
commit 5b79024d8b072887955230b43f2ef01679c23907 1 parent 41fc300
@akoprow akoprow authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 stdlib/core/date/date.opa
View
4 stdlib/core/date/date.opa
@@ -645,7 +645,7 @@ type time_t = external
*
* @param wday weekday to convert
*/
- to_string : Date.weekday -> string =
+ @stringifier(Date.weekday) to_string : Date.weekday -> string =
| {monday} -> "Monday"
| {tuesday} -> "Tuesday"
| {wednesday} -> "Wednesday"
@@ -727,7 +727,7 @@ type time_t = external
*
* @param month a month to convert
**/
- to_string : Date.month -> string =
+ @stringifier(Date.month) to_string : Date.month -> string =
| {january} -> "January"
| {february} -> "February"
| {march} -> "March"
Please sign in to comment.
Something went wrong with that request. Please try again.