Skip to content

Commit

Permalink
Leap: Add link to guards to hints (#792)
Browse files Browse the repository at this point in the history
* Leap: Add link to guards to hints

While many students submit something with guards, some don't.

This provides learning material up-front.

* Remove the "don't use standard library leap functions" message.

This change references exercism/problem-specifications#1418.
  • Loading branch information
sshine authored Dec 17, 2018
1 parent 1235501 commit 3e934c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
12 changes: 5 additions & 7 deletions exercises/leap/.meta/hints.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
## Hints

To complete this exercise you need to implement the function `isLeapYear`,
that takes a year and determines whether it is a leap year.
To complete this exercise you need to implement the function `isLeapYear`
that takes a year and determines whether it is a leap year. To solve this
exercise you may read up on:

You can use the provided signature if you are unsure about the types, but
don't let it restrict your creativity:
- [Guards][guards]

```haskell
isLeapYear :: Integer -> Bool
```
[guards]: https://www.futurelearn.com/courses/functional-programming-haskell/0/steps/27226
15 changes: 5 additions & 10 deletions exercises/leap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on every year that is evenly divisible by 4
For example, 1997 is not a leap year, but 1996 is. 1900 is not a leap
year, but 2000 is.

If your language provides a method in the standard library that does
this look-up, pretend it doesn't exist and implement it yourself.

## Notes

Though our exercise adopts some very simple rules, there is more to
Expand All @@ -28,15 +25,13 @@ phenomenon, go watch [this youtube video][video].

## Hints

To complete this exercise you need to implement the function `isLeapYear`,
that takes a year and determines whether it is a leap year.
To complete this exercise you need to implement the function `isLeapYear`
that takes a year and determines whether it is a leap year. To solve this
exercise you may read up on:

You can use the provided signature if you are unsure about the types, but
don't let it restrict your creativity:
- [Guards][guards]

```haskell
isLeapYear :: Integer -> Bool
```
[guards]: https://www.futurelearn.com/courses/functional-programming-haskell/0/steps/27226



Expand Down

0 comments on commit 3e934c2

Please sign in to comment.