Skip to content

Commit

Permalink
[enhance] Date: adding @stringifiers for Date.month & Date.weekday
Browse files Browse the repository at this point in the history
  • Loading branch information
akoprow committed Nov 1, 2011
1 parent 41fc300 commit 5b79024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/core/date/date.opa
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 5b79024

Please sign in to comment.