Skip to content

resistor-color: Mark exercise as foregone#888

Merged
sshine merged 1 commit intoexercism:masterfrom
sshine:foregone-resistor-color
Jan 14, 2020
Merged

resistor-color: Mark exercise as foregone#888
sshine merged 1 commit intoexercism:masterfrom
sshine:foregone-resistor-color

Conversation

@sshine
Copy link
Copy Markdown
Contributor

@sshine sshine commented Jan 13, 2020

resistor-color-duo was added in #808.

resistor-color-trio was added in #869.

Yet there is no resistor-color. I argue that there shouldn't be.

A reasonable solution might look like

data Color = ...
  deriving (Eq, Enum, Bounded)

colorCode :: Color -> Int
colorCode = fromEnum

colors :: [Color]
colors = [minBound..]

which makes it approximately as simple as the gigasecond exercise which was marked as deprecated in #280 (decision made in #230). Still, if it is simply missing, it will appear as an exercise that is potentially implementable on https://tracks.exercism.io/haskell/master/unimplemented

Since a question was raised about this exercise once, marking it as foregone will limit further requests made in vain.

resistor-color-duo was added in #808.

resistor-color-trio was added in #869.

Yet there is no resistor-color. I argue that there shouldn't be.

A reasonable solution might look like

```haskell
data Color = ...
  deriving (Eq, Enum, Bounded)

colorCode :: Color -> Int
colorCode = fromEnum

colors :: [Color]
colors = [minBound..]
```

which makes it approximately as simple as the gigasecond exercise which
was marked as deprecated in #280 (decision made in #230). Still, if it
is simply missing, it will appear as an exercise that is potentially
implementable on https://tracks.exercism.io/haskell/master/unimplemented

Since a question was raised about this exercise once, marking it as
foregone will limit further requests made in vain.
@sshine sshine requested a review from petertseng January 13, 2020 23:00
@sshine sshine merged commit ba96396 into exercism:master Jan 14, 2020
@sshine sshine deleted the foregone-resistor-color branch January 14, 2020 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants