-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding isogram #595
adding isogram #595
Conversation
This one is ok. right? |
config.json
Outdated
"unlocked_by": null, | ||
"difficulty": 1, | ||
"topics": [ | ||
"Data.Char" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in contrast to Maybe, I don't think this:
- affects where we would choose to place the exercise
- is necessarily going to be in everyone's solutions
so I would remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right
exercises/isogram/package.yaml
Outdated
@@ -0,0 +1,20 @@ | |||
name: isogram | |||
version: 1.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.1.0.1
exercises/isogram/test/Tests.hs
Outdated
@@ -0,0 +1,64 @@ | |||
{-# OPTIONS_GHC -fno-warn-type-defaults #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that #144 tells us this line helps for exercises with numbers but this is not one, I think it can be removed?
exercises/isogram/src/Isogram.hs
Outdated
@@ -0,0 +1,6 @@ | |||
module Isogram (isIsogram) where | |||
|
|||
import Data.Char |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since
- Not every solution wants or needs this
- I wouldn't want to encourage the habit of importing everything rather than the specific list of functions desired
I would remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I don't think there's anything big to change, so it will be merged no more than 48 hours. There are two small things. I was going to do them myself. You can if you want.
exercises/isogram/README.md
Outdated
|
||
## Source | ||
|
||
see more at [wikipedia page of isograms]("https://en.wikipedia.org/wiki/Isogram") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you can see in https://github.com/Average-user/haskell/blob/d1556eadc748688089e3261700ab9678f2caf245/exercises/isogram/README.md, the quotes mean it is not a link.
I'm going to regenerate this README anyway so it doesn't matter whether you fix this, but don't put quotes in the brackets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so the next time i make PR like this, do i even have to put the README.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not! I will just do it. However, it would be good if you just put a README.md that just says "please regenerate this for me" so that I don't forget to!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, also, dont merge yet, i want to implement something
@@ -0,0 +1,5 @@ | |||
module Isogram (isIsogram) where | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove one newline here so there is only one between module
and isIsogram
, not two.
Now you can merge if you want |
How can i do if i want to do another PR before this one gets merge? |
Make a branch. |
But Github will still catch the differences with the (in this case) Isogram commits |
Github shows all commits that are not on the target branch (Exercism's master branch) but are on the PR branch (your new branch). The Isogram commits should not be on your new branch. Achieve that using whatever means you prefer. Ask if you want a suggestion of a preferred means. |
Thanks, i'll take that suggestion you offer . |
Case 1: You do not already have a branch. You decide on a branch name, and then you (why, because Case 2: You already have a branch. You |
Instead of this key (or whatever) |
If the repository https://github.com/exercism/haskell is a remote on your local copy of the git repo, you may instead use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
far as I can tell, we are ready to go.
Thank you for implementing this exercise! |
Another Unimplemented exercise