Skip to content

trinary: Move hints to HINTS.md #384

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

Merged
merged 1 commit into from
Sep 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions exercises/trinary/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Hints

For the appropriate amount of challenge here, you should only
use functionality present in Prelude. Try not to use Data.List,
Data.Char, Data.Bits, or Numeric.

Try and use seq, $!, or BangPatterns appropriately to ensure
that the solution is efficient.

Handling invalid input is not necessary.

If you've done the Octal exercise, perhaps you should generalize it.
13 changes: 0 additions & 13 deletions exercises/trinary/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ import qualified Numeric as Num (showIntAtBase)

import Trinary (readTri, showTri)

{-
For the appropriate amount of challenge here, you should only
use functionality present in Prelude. Try not to use
Data.List, Data.Char, Data.Bits, or Numeric.

Try and use seq, $!, or BangPatterns appropriately to ensure
that the solution is efficient.

Handling invalid input is not necessary.

If you've done the Octal exercise, perhaps you should generalize it.
-}

main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

Expand Down