From 249d26c7f25492bf4b53d16e34c496e41fcf4f16 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Sun, 13 Oct 2019 19:05:11 +0200 Subject: [PATCH] Add hint and change version back to 2.1.0.3 (was 2.1.0.2) --- exercises/resistor-color-duo/.meta/hints.md | 10 ++++++++++ exercises/resistor-color-duo/README.md | 12 ++++++++++++ exercises/resistor-color-duo/package.yaml | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 exercises/resistor-color-duo/.meta/hints.md diff --git a/exercises/resistor-color-duo/.meta/hints.md b/exercises/resistor-color-duo/.meta/hints.md new file mode 100644 index 000000000..055f0d15e --- /dev/null +++ b/exercises/resistor-color-duo/.meta/hints.md @@ -0,0 +1,10 @@ +## Hints + +You need to implement the function + +```haskell +value :: (Color, Color) -> Int +``` + +that only accepts two colors and produces the resistor's numeric value +component of its resistance. diff --git a/exercises/resistor-color-duo/README.md b/exercises/resistor-color-duo/README.md index ff41fd76f..e774b45b4 100644 --- a/exercises/resistor-color-duo/README.md +++ b/exercises/resistor-color-duo/README.md @@ -27,6 +27,18 @@ brown-green should return 15 brown-green-violet should return 15 too, ignoring the third color. +## Hints + +You need to implement the function + +```haskell +value :: (Color, Color) -> Int +``` + +that only accepts two colors and produces the resistor's numeric value +component of its resistance. + + ## Getting Started diff --git a/exercises/resistor-color-duo/package.yaml b/exercises/resistor-color-duo/package.yaml index 771ac33b7..525c90324 100644 --- a/exercises/resistor-color-duo/package.yaml +++ b/exercises/resistor-color-duo/package.yaml @@ -1,5 +1,5 @@ name: resistor-color-duo -version: 0.1.0.3 +version: 2.1.0.3 dependencies: - base