From 7ddb1b57c67c78a3ff6ac69a73bed01e899bdb6e Mon Sep 17 00:00:00 2001 From: Erik Simmler Date: Thu, 12 May 2016 22:26:52 -0400 Subject: [PATCH] Update elm-package.json and .elm files to support Elm 0.17 --- .travis.yml | 2 +- README.md | 12 +++++------- elm-package.json | 10 ++++------ exercises/accumulate/Accumulate.elm | 2 +- exercises/accumulate/Accumulate.example | 2 +- exercises/accumulate/AccumulateTests.elm | 10 ++++------ exercises/accumulate/elm-package.json | 9 ++++----- exercises/allergies/Allergies.elm | 2 +- exercises/allergies/Allergies.example | 2 +- exercises/allergies/AllergiesTests.elm | 10 ++++------ exercises/allergies/elm-package.json | 9 ++++----- exercises/anagram/Anagram.elm | 2 +- exercises/anagram/Anagram.example | 2 +- exercises/anagram/AnagramTests.elm | 10 ++++------ exercises/anagram/elm-package.json | 9 ++++----- exercises/bob/Bob.example | 2 +- exercises/bob/BobTests.elm | 12 +++++------- exercises/bob/elm-package.json | 9 ++++----- .../difference-of-squares/DifferenceOfSquares.elm | 2 +- .../DifferenceOfSquares.example | 2 +- .../DifferenceOfSquaresTests.elm | 10 ++++------ exercises/difference-of-squares/elm-package.json | 9 ++++----- exercises/grade-school/GradeSchool.elm | 2 +- exercises/grade-school/GradeSchool.example | 2 +- exercises/grade-school/GradeSchoolTests.elm | 10 ++++------ exercises/grade-school/elm-package.json | 9 ++++----- exercises/hamming/Hamming.elm | 2 +- exercises/hamming/Hamming.example | 2 +- exercises/hamming/HammingTests.elm | 10 ++++------ exercises/hamming/elm-package.json | 9 ++++----- exercises/hello-world/HelloWorld.elm | 2 +- exercises/hello-world/HelloWorld.example | 2 +- exercises/hello-world/HelloWorldTests.elm | 10 ++++------ exercises/hello-world/elm-package.json | 9 ++++----- exercises/leap/Leap.elm | 2 +- exercises/leap/Leap.example | 2 +- exercises/leap/LeapTests.elm | 10 ++++------ exercises/leap/elm-package.json | 9 ++++----- exercises/list-ops/ListOps.elm | 2 +- exercises/list-ops/ListOps.example | 2 +- exercises/list-ops/ListOpsTests.elm | 10 ++++------ exercises/list-ops/elm-package.json | 9 ++++----- exercises/nucleotide-count/NucleotideCount.elm | 2 +- exercises/nucleotide-count/NucleotideCount.example | 2 +- exercises/nucleotide-count/NucleotideCountTests.elm | 10 ++++------ exercises/nucleotide-count/elm-package.json | 9 ++++----- exercises/pangram/Pangram.example | 2 +- exercises/pangram/PangramTests.elm | 10 ++++------ exercises/pangram/elm-package.json | 9 ++++----- exercises/phone-number/PhoneNumber.elm | 2 +- exercises/phone-number/PhoneNumber.example | 2 +- exercises/phone-number/PhoneNumberTests.elm | 10 ++++------ exercises/phone-number/elm-package.json | 9 ++++----- exercises/raindrops/Raindrops.elm | 2 +- exercises/raindrops/Raindrops.example | 2 +- exercises/raindrops/RaindropsTests.elm | 10 ++++------ exercises/raindrops/elm-package.json | 9 ++++----- exercises/rna-transcription/RNATranscription.elm | 2 +- exercises/rna-transcription/RNATranscription.example | 2 +- .../rna-transcription/RNATranscriptionTests.elm | 10 ++++------ exercises/rna-transcription/elm-package.json | 9 ++++----- exercises/robot-simulator/RobotSimulator.elm | 2 +- exercises/robot-simulator/RobotSimulator.example | 2 +- exercises/robot-simulator/RobotSimulatorTests.elm | 10 ++++------ exercises/robot-simulator/elm-package.json | 9 ++++----- exercises/run-length-encoding/RunLengthEncoding.elm | 2 +- .../run-length-encoding/RunLengthEncoding.example | 2 +- .../RunLengthEncodingPropertyChecks.elm | 4 +++- .../run-length-encoding/RunLengthEncodingTests.elm | 12 ++++-------- exercises/run-length-encoding/elm-package.json | 10 ++++------ exercises/series/Series.elm | 2 +- exercises/series/Series.example | 2 +- exercises/series/SeriesTests.elm | 10 ++++------ exercises/series/elm-package.json | 9 ++++----- exercises/space-age/SpaceAge.elm | 2 +- exercises/space-age/SpaceAge.example | 2 +- exercises/space-age/SpaceAgeTests.elm | 10 ++++------ exercises/space-age/elm-package.json | 9 ++++----- exercises/strain/Strain.elm | 2 +- exercises/strain/Strain.example | 2 +- exercises/strain/StrainTests.elm | 10 ++++------ exercises/strain/elm-package.json | 9 ++++----- exercises/sublist/Sublist.elm | 2 +- exercises/sublist/Sublist.example | 2 +- exercises/sublist/SublistTests.elm | 10 ++++------ exercises/sublist/elm-package.json | 9 ++++----- exercises/sum-of-multiples/SumOfMultiples.elm | 2 +- exercises/sum-of-multiples/SumOfMultiples.example | 2 +- exercises/sum-of-multiples/SumOfMultiplesTests.elm | 10 ++++------ exercises/sum-of-multiples/elm-package.json | 9 ++++----- exercises/triangle/Triangle.elm | 2 +- exercises/triangle/Triangle.example | 2 +- exercises/triangle/TriangleTests.elm | 10 ++++------ exercises/triangle/elm-package.json | 9 ++++----- exercises/word-count/WordCount.elm | 2 +- exercises/word-count/WordCount.example | 2 +- exercises/word-count/WordCountTests.elm | 10 ++++------ exercises/word-count/elm-package.json | 9 ++++----- 98 files changed, 252 insertions(+), 329 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ab6741..b809d52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ sudo: false install: - nvm install 0.12 - nvm use 0.12 - - npm install -g elm@0.16.0 elm-test@0.16.0 + - npm install -g elm@0.17.0 elm-test@0.16.1-alpha4 - elm package install -y script: diff --git a/README.md b/README.md index 8a84b3e..348d9c9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Please keep the following in mind: - Each exercise should have a test suite, an example solution, a template file for the real implementation and an `elm-package.json` file with the `elm-test` and `elm-console` dependencies. The CI build expects files to be named using the following convention. The example solution should be named `ExerciseModuleName.example`. The template file should be named `ExerciseModuleName.elm`. Test file should be named `ExerciseModuleNameTest.elm`. - The recommended workflow when working on an exercise is to first create the implementation and test files, `ExerciseModuleName.elm` and `ExerciseModuleNameTest.elm`. - - Test the new exercise directly by running `elm-test exercises/exercise_module_name/ExerciseModuleNameTest.elm`. + - Test the new exercise directly by running `elm-test exercises/exercise_module_name/ExerciseModuleNameTest.elm`. - Once the implementation of the exercise is complete, move `ExerciseModuleName.elm` to `ExerciseModuleName.example` and create the template file. @@ -57,10 +57,8 @@ Please keep the following in mind: - Test files should use the following format: ```elm -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) @@ -73,9 +71,9 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests ``` - All the tests for xElm exercises can be run from the top level of the repo with `bin/build.sh`. Please run this command before submitting your PR. diff --git a/elm-package.json b/elm-package.json index cc8ddd3..ed0fb07 100644 --- a/elm-package.json +++ b/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -32,10 +32,8 @@ ], "exposed-modules": [], "dependencies": { - "NoRedInk/elm-check": "3.0.0 <= v < 4.0.0", - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/accumulate/Accumulate.elm b/exercises/accumulate/Accumulate.elm index daf8472..fd5f555 100644 --- a/exercises/accumulate/Accumulate.elm +++ b/exercises/accumulate/Accumulate.elm @@ -1 +1 @@ -module Accumulate (..) where +module Accumulate exposing (..) diff --git a/exercises/accumulate/Accumulate.example b/exercises/accumulate/Accumulate.example index b1630c3..19127e5 100644 --- a/exercises/accumulate/Accumulate.example +++ b/exercises/accumulate/Accumulate.example @@ -1,4 +1,4 @@ -module Accumulate (..) where +module Accumulate exposing (..) accumulate : (a -> b) -> List a -> List b diff --git a/exercises/accumulate/AccumulateTests.elm b/exercises/accumulate/AccumulateTests.elm index 52932a5..c8a96a9 100644 --- a/exercises/accumulate/AccumulateTests.elm +++ b/exercises/accumulate/AccumulateTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Accumulate exposing (accumulate) import String @@ -31,6 +29,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/accumulate/elm-package.json b/exercises/accumulate/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/accumulate/elm-package.json +++ b/exercises/accumulate/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/allergies/Allergies.elm b/exercises/allergies/Allergies.elm index 06ffaa5..87da11a 100644 --- a/exercises/allergies/Allergies.elm +++ b/exercises/allergies/Allergies.elm @@ -1 +1 @@ -module Allergies (..) where +module Allergies exposing (..) diff --git a/exercises/allergies/Allergies.example b/exercises/allergies/Allergies.example index 6f7da84..557d8fe 100644 --- a/exercises/allergies/Allergies.example +++ b/exercises/allergies/Allergies.example @@ -1,4 +1,4 @@ -module Allergies (..) where +module Allergies exposing (..) import List import Bitwise diff --git a/exercises/allergies/AllergiesTests.elm b/exercises/allergies/AllergiesTests.elm index d53d1ad..a002360 100644 --- a/exercises/allergies/AllergiesTests.elm +++ b/exercises/allergies/AllergiesTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Allergies exposing (isAllergicTo, toList) import List @@ -68,6 +66,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/allergies/elm-package.json b/exercises/allergies/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/allergies/elm-package.json +++ b/exercises/allergies/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/anagram/Anagram.elm b/exercises/anagram/Anagram.elm index 77c1f1a..1b66a44 100644 --- a/exercises/anagram/Anagram.elm +++ b/exercises/anagram/Anagram.elm @@ -1 +1 @@ -module Anagram (..) where +module Anagram exposing (..) diff --git a/exercises/anagram/Anagram.example b/exercises/anagram/Anagram.example index c641751..d94b06b 100644 --- a/exercises/anagram/Anagram.example +++ b/exercises/anagram/Anagram.example @@ -1,4 +1,4 @@ -module Anagram (..) where +module Anagram exposing (..) import String exposing (toLower, toList) diff --git a/exercises/anagram/AnagramTests.elm b/exercises/anagram/AnagramTests.elm index 0489fd6..39e1f85 100644 --- a/exercises/anagram/AnagramTests.elm +++ b/exercises/anagram/AnagramTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Anagram exposing (detect) @@ -133,6 +131,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/anagram/elm-package.json b/exercises/anagram/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/anagram/elm-package.json +++ b/exercises/anagram/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/bob/Bob.example b/exercises/bob/Bob.example index 87afb6b..2dc86b6 100644 --- a/exercises/bob/Bob.example +++ b/exercises/bob/Bob.example @@ -1,4 +1,4 @@ -module Bob (..) where +module Bob exposing (..) import String import Regex diff --git a/exercises/bob/BobTests.elm b/exercises/bob/BobTests.elm index ba47752..350d4f3 100644 --- a/exercises/bob/BobTests.elm +++ b/exercises/bob/BobTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import String import Char @@ -58,7 +56,7 @@ listOfCharacters length characterList = gibberish : Int -> Random.Generator Char -> String gibberish length characterList = - fst (Random.generate (Random.map String.fromList (listOfCharacters length characterList)) (Random.initialSeed 424242)) + fst (Random.step (Random.map String.fromList (listOfCharacters length characterList)) (Random.initialSeed 424242)) uppercaseGibberish : Int -> String @@ -71,6 +69,6 @@ gibberishQuestion length = (gibberish length anyCharacter) ++ "?" -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/bob/elm-package.json b/exercises/bob/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/bob/elm-package.json +++ b/exercises/bob/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/difference-of-squares/DifferenceOfSquares.elm b/exercises/difference-of-squares/DifferenceOfSquares.elm index 1da591a..7d9ec0d 100644 --- a/exercises/difference-of-squares/DifferenceOfSquares.elm +++ b/exercises/difference-of-squares/DifferenceOfSquares.elm @@ -1 +1 @@ -module DifferenceOfSquares (..) where +module DifferenceOfSquares exposing (..) diff --git a/exercises/difference-of-squares/DifferenceOfSquares.example b/exercises/difference-of-squares/DifferenceOfSquares.example index 2d71d3e..3294568 100644 --- a/exercises/difference-of-squares/DifferenceOfSquares.example +++ b/exercises/difference-of-squares/DifferenceOfSquares.example @@ -1,4 +1,4 @@ -module DifferenceOfSquares (..) where +module DifferenceOfSquares exposing (..) squareOfSum : Int -> Int diff --git a/exercises/difference-of-squares/DifferenceOfSquaresTests.elm b/exercises/difference-of-squares/DifferenceOfSquaresTests.elm index 1653db8..0ebf8e2 100644 --- a/exercises/difference-of-squares/DifferenceOfSquaresTests.elm +++ b/exercises/difference-of-squares/DifferenceOfSquaresTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import DifferenceOfSquares exposing (squareOfSum, sumOfSquares, difference) @@ -32,6 +30,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/difference-of-squares/elm-package.json b/exercises/difference-of-squares/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/difference-of-squares/elm-package.json +++ b/exercises/difference-of-squares/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/grade-school/GradeSchool.elm b/exercises/grade-school/GradeSchool.elm index b693c89..ac96952 100644 --- a/exercises/grade-school/GradeSchool.elm +++ b/exercises/grade-school/GradeSchool.elm @@ -1,2 +1,2 @@ -module GradeSchool (..) where +module GradeSchool exposing (..) diff --git a/exercises/grade-school/GradeSchool.example b/exercises/grade-school/GradeSchool.example index 11af7ec..1a2e108 100644 --- a/exercises/grade-school/GradeSchool.example +++ b/exercises/grade-school/GradeSchool.example @@ -1,4 +1,4 @@ -module GradeSchool (..) where +module GradeSchool exposing (..) import Dict exposing (..) diff --git a/exercises/grade-school/GradeSchoolTests.elm b/exercises/grade-school/GradeSchoolTests.elm index d5d37df..689e8ef 100644 --- a/exercises/grade-school/GradeSchoolTests.elm +++ b/exercises/grade-school/GradeSchoolTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import GradeSchool exposing (addStudent, studentsInGrade, allStudents) @@ -72,6 +70,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/grade-school/elm-package.json b/exercises/grade-school/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/grade-school/elm-package.json +++ b/exercises/grade-school/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/hamming/Hamming.elm b/exercises/hamming/Hamming.elm index 573c4f1..0a5781c 100644 --- a/exercises/hamming/Hamming.elm +++ b/exercises/hamming/Hamming.elm @@ -1 +1 @@ -module Hamming (..) where +module Hamming exposing (..) diff --git a/exercises/hamming/Hamming.example b/exercises/hamming/Hamming.example index d87f6bd..62d940d 100644 --- a/exercises/hamming/Hamming.example +++ b/exercises/hamming/Hamming.example @@ -1,4 +1,4 @@ -module Hamming (..) where +module Hamming exposing (..) import String exposing (length, toList) diff --git a/exercises/hamming/HammingTests.elm b/exercises/hamming/HammingTests.elm index 50e5e93..1b01123 100644 --- a/exercises/hamming/HammingTests.elm +++ b/exercises/hamming/HammingTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Hamming exposing (distance) @@ -55,6 +53,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/hamming/elm-package.json b/exercises/hamming/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/hamming/elm-package.json +++ b/exercises/hamming/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/hello-world/HelloWorld.elm b/exercises/hello-world/HelloWorld.elm index 136054d..9db3ce1 100644 --- a/exercises/hello-world/HelloWorld.elm +++ b/exercises/hello-world/HelloWorld.elm @@ -7,7 +7,7 @@ file. It has to stay just the way it is. -} -module HelloWorld (..) where +module HelloWorld exposing (..) -- It's good style to include a types at the top level of your modules. diff --git a/exercises/hello-world/HelloWorld.example b/exercises/hello-world/HelloWorld.example index bbec56a..5d63c56 100644 --- a/exercises/hello-world/HelloWorld.example +++ b/exercises/hello-world/HelloWorld.example @@ -1,4 +1,4 @@ -module HelloWorld (..) where +module HelloWorld exposing (..) helloWorld : Maybe String -> String diff --git a/exercises/hello-world/HelloWorldTests.elm b/exercises/hello-world/HelloWorldTests.elm index 07bac5d..defcb5c 100644 --- a/exercises/hello-world/HelloWorldTests.elm +++ b/exercises/hello-world/HelloWorldTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import HelloWorld exposing (helloWorld) @@ -16,6 +14,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/hello-world/elm-package.json b/exercises/hello-world/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/hello-world/elm-package.json +++ b/exercises/hello-world/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/leap/Leap.elm b/exercises/leap/Leap.elm index 3f41ddc..2fd0986 100644 --- a/exercises/leap/Leap.elm +++ b/exercises/leap/Leap.elm @@ -1 +1 @@ -module Leap (..) where +module Leap exposing (..) diff --git a/exercises/leap/Leap.example b/exercises/leap/Leap.example index 35b4c83..bd510f8 100644 --- a/exercises/leap/Leap.example +++ b/exercises/leap/Leap.example @@ -1,4 +1,4 @@ -module Leap (..) where +module Leap exposing (..) isLeapYear : Int -> Bool diff --git a/exercises/leap/LeapTests.elm b/exercises/leap/LeapTests.elm index afbacc1..2a52e65 100644 --- a/exercises/leap/LeapTests.elm +++ b/exercises/leap/LeapTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Leap @@ -20,6 +18,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/leap/elm-package.json b/exercises/leap/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/leap/elm-package.json +++ b/exercises/leap/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/list-ops/ListOps.elm b/exercises/list-ops/ListOps.elm index 4adeaff..6c4fa87 100644 --- a/exercises/list-ops/ListOps.elm +++ b/exercises/list-ops/ListOps.elm @@ -1 +1 @@ -module ListOps (..) where +module ListOps exposing (..) diff --git a/exercises/list-ops/ListOps.example b/exercises/list-ops/ListOps.example index a2f1514..ab1572e 100644 --- a/exercises/list-ops/ListOps.example +++ b/exercises/list-ops/ListOps.example @@ -1,4 +1,4 @@ -module ListOps (..) where +module ListOps exposing (..) length : List a -> Int diff --git a/exercises/list-ops/ListOpsTests.elm b/exercises/list-ops/ListOpsTests.elm index 129a74d..aabb5e4 100644 --- a/exercises/list-ops/ListOpsTests.elm +++ b/exercises/list-ops/ListOpsTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import ListOps exposing (..) @@ -63,6 +61,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/list-ops/elm-package.json b/exercises/list-ops/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/list-ops/elm-package.json +++ b/exercises/list-ops/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/nucleotide-count/NucleotideCount.elm b/exercises/nucleotide-count/NucleotideCount.elm index 4275b05..9954e6f 100644 --- a/exercises/nucleotide-count/NucleotideCount.elm +++ b/exercises/nucleotide-count/NucleotideCount.elm @@ -1,4 +1,4 @@ -module NucleotideCount (..) where +module NucleotideCount exposing (..) version : Int diff --git a/exercises/nucleotide-count/NucleotideCount.example b/exercises/nucleotide-count/NucleotideCount.example index f22d566..cbc8278 100644 --- a/exercises/nucleotide-count/NucleotideCount.example +++ b/exercises/nucleotide-count/NucleotideCount.example @@ -1,4 +1,4 @@ -module NucleotideCount (..) where +module NucleotideCount exposing (..) import String diff --git a/exercises/nucleotide-count/NucleotideCountTests.elm b/exercises/nucleotide-count/NucleotideCountTests.elm index 00bfd2d..d7a5f98 100644 --- a/exercises/nucleotide-count/NucleotideCountTests.elm +++ b/exercises/nucleotide-count/NucleotideCountTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import NucleotideCount exposing (nucleotideCounts, version) @@ -34,6 +32,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/nucleotide-count/elm-package.json b/exercises/nucleotide-count/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/nucleotide-count/elm-package.json +++ b/exercises/nucleotide-count/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/pangram/Pangram.example b/exercises/pangram/Pangram.example index 25186a6..d08e85b 100644 --- a/exercises/pangram/Pangram.example +++ b/exercises/pangram/Pangram.example @@ -1,4 +1,4 @@ -module Pangram (..) where +module Pangram exposing (..) import String exposing (toLower, contains, fromChar) diff --git a/exercises/pangram/PangramTests.elm b/exercises/pangram/PangramTests.elm index a5eaec4..8ce2e52 100644 --- a/exercises/pangram/PangramTests.elm +++ b/exercises/pangram/PangramTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Pangram exposing (isPangram) @@ -43,6 +41,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/pangram/elm-package.json b/exercises/pangram/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/pangram/elm-package.json +++ b/exercises/pangram/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/phone-number/PhoneNumber.elm b/exercises/phone-number/PhoneNumber.elm index 076c905..07c438e 100644 --- a/exercises/phone-number/PhoneNumber.elm +++ b/exercises/phone-number/PhoneNumber.elm @@ -1 +1 @@ -module PhoneNumber (..) where +module PhoneNumber exposing (..) diff --git a/exercises/phone-number/PhoneNumber.example b/exercises/phone-number/PhoneNumber.example index c5271a3..39baac2 100644 --- a/exercises/phone-number/PhoneNumber.example +++ b/exercises/phone-number/PhoneNumber.example @@ -1,4 +1,4 @@ -module PhoneNumber (..) where +module PhoneNumber exposing (..) import String diff --git a/exercises/phone-number/PhoneNumberTests.elm b/exercises/phone-number/PhoneNumberTests.elm index 1a116dd..6fafda3 100644 --- a/exercises/phone-number/PhoneNumberTests.elm +++ b/exercises/phone-number/PhoneNumberTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import PhoneNumber exposing (getNumber, prettyPrint) @@ -49,6 +47,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/phone-number/elm-package.json b/exercises/phone-number/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/phone-number/elm-package.json +++ b/exercises/phone-number/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/raindrops/Raindrops.elm b/exercises/raindrops/Raindrops.elm index 560fda0..3f355ae 100644 --- a/exercises/raindrops/Raindrops.elm +++ b/exercises/raindrops/Raindrops.elm @@ -1 +1 @@ -module Raindrops (..) where +module Raindrops exposing (..) diff --git a/exercises/raindrops/Raindrops.example b/exercises/raindrops/Raindrops.example index 79dfc82..dad7896 100644 --- a/exercises/raindrops/Raindrops.example +++ b/exercises/raindrops/Raindrops.example @@ -1,4 +1,4 @@ -module Raindrops (..) where +module Raindrops exposing (..) import String diff --git a/exercises/raindrops/RaindropsTests.elm b/exercises/raindrops/RaindropsTests.elm index e778c66..0b46b5e 100644 --- a/exercises/raindrops/RaindropsTests.elm +++ b/exercises/raindrops/RaindropsTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Raindrops exposing (raindrops) @@ -28,6 +26,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/raindrops/elm-package.json b/exercises/raindrops/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/raindrops/elm-package.json +++ b/exercises/raindrops/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/rna-transcription/RNATranscription.elm b/exercises/rna-transcription/RNATranscription.elm index 0c7925b..cb45eca 100644 --- a/exercises/rna-transcription/RNATranscription.elm +++ b/exercises/rna-transcription/RNATranscription.elm @@ -1 +1 @@ -module RNATranscription (..) where +module RNATranscription exposing (..) diff --git a/exercises/rna-transcription/RNATranscription.example b/exercises/rna-transcription/RNATranscription.example index 80c83b9..1fe8aad 100644 --- a/exercises/rna-transcription/RNATranscription.example +++ b/exercises/rna-transcription/RNATranscription.example @@ -1,4 +1,4 @@ -module RNATranscription (toRNA) where +module RNATranscription exposing (toRNA) import String diff --git a/exercises/rna-transcription/RNATranscriptionTests.elm b/exercises/rna-transcription/RNATranscriptionTests.elm index 88f10b9..440fa4a 100644 --- a/exercises/rna-transcription/RNATranscriptionTests.elm +++ b/exercises/rna-transcription/RNATranscriptionTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import RNATranscription exposing (toRNA) @@ -34,6 +32,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/rna-transcription/elm-package.json b/exercises/rna-transcription/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/rna-transcription/elm-package.json +++ b/exercises/rna-transcription/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/robot-simulator/RobotSimulator.elm b/exercises/robot-simulator/RobotSimulator.elm index 4a02c2f..c8131e9 100644 --- a/exercises/robot-simulator/RobotSimulator.elm +++ b/exercises/robot-simulator/RobotSimulator.elm @@ -1 +1 @@ -module RobotSimulator (..) where +module RobotSimulator exposing (..) diff --git a/exercises/robot-simulator/RobotSimulator.example b/exercises/robot-simulator/RobotSimulator.example index a9711d1..4fd4b04 100644 --- a/exercises/robot-simulator/RobotSimulator.example +++ b/exercises/robot-simulator/RobotSimulator.example @@ -1,4 +1,4 @@ -module RobotSimulator (..) where +module RobotSimulator exposing (..) import String diff --git a/exercises/robot-simulator/RobotSimulatorTests.elm b/exercises/robot-simulator/RobotSimulatorTests.elm index 7c82bd1..03637c8 100644 --- a/exercises/robot-simulator/RobotSimulatorTests.elm +++ b/exercises/robot-simulator/RobotSimulatorTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import RobotSimulator exposing (defaultRobot, Robot, Bearing(North, East, West, South), turnRight, turnLeft, advance, simulate) @@ -126,6 +124,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/robot-simulator/elm-package.json b/exercises/robot-simulator/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/robot-simulator/elm-package.json +++ b/exercises/robot-simulator/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/run-length-encoding/RunLengthEncoding.elm b/exercises/run-length-encoding/RunLengthEncoding.elm index 4bd44c8..8c697c3 100644 --- a/exercises/run-length-encoding/RunLengthEncoding.elm +++ b/exercises/run-length-encoding/RunLengthEncoding.elm @@ -1 +1 @@ -module RunLengthEncoding (..) where +module RunLengthEncoding exposing (..) diff --git a/exercises/run-length-encoding/RunLengthEncoding.example b/exercises/run-length-encoding/RunLengthEncoding.example index 5f4484e..03498b6 100644 --- a/exercises/run-length-encoding/RunLengthEncoding.example +++ b/exercises/run-length-encoding/RunLengthEncoding.example @@ -1,4 +1,4 @@ -module RunLengthEncoding (version, encode, decode) where +module RunLengthEncoding exposing (version, encode, decode) import String exposing (fromChar) import List exposing (head, tail) diff --git a/exercises/run-length-encoding/RunLengthEncodingPropertyChecks.elm b/exercises/run-length-encoding/RunLengthEncodingPropertyChecks.elm index 26b2393..a0fbd7e 100644 --- a/exercises/run-length-encoding/RunLengthEncodingPropertyChecks.elm +++ b/exercises/run-length-encoding/RunLengthEncodingPropertyChecks.elm @@ -1,4 +1,4 @@ -module RunLengthEncodingPropertyChecks (propertyTests) where +module RunLengthEncodingPropertyChecks exposing (propertyTests) import ElmTest import Check exposing (suite, claim, that, is, for, quickCheck) @@ -10,6 +10,8 @@ import Char {- +Currently disabled until elm-check is updated to support Elm 0.17 + Welcome! This is a property based test which will generate a bunch of random test cases in an attempt to find edge cases in your solution. If all goes well, any code that passes the regular tests should be fine here as well. If it goes diff --git a/exercises/run-length-encoding/RunLengthEncodingTests.elm b/exercises/run-length-encoding/RunLengthEncodingTests.elm index f1da90d..c589af4 100644 --- a/exercises/run-length-encoding/RunLengthEncodingTests.elm +++ b/exercises/run-length-encoding/RunLengthEncodingTests.elm @@ -1,10 +1,7 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import RunLengthEncoding exposing (version, decode, encode) -import RunLengthEncodingPropertyChecks exposing (propertyTests) tests : Test @@ -50,10 +47,9 @@ tests = , test "decode unicode" (assertEqual "⏰⚽⚽⚽⭐⭐⏰" (decode "⏰3⚽2⭐⏰")) - , propertyTests ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/run-length-encoding/elm-package.json b/exercises/run-length-encoding/elm-package.json index 290940d..1ab2bdf 100644 --- a/exercises/run-length-encoding/elm-package.json +++ b/exercises/run-length-encoding/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,10 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "NoRedInk/elm-check": "3.0.0 <= v < 4.0.0", - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/series/Series.elm b/exercises/series/Series.elm index 43ea726..02ee6cc 100644 --- a/exercises/series/Series.elm +++ b/exercises/series/Series.elm @@ -1 +1 @@ -module Series (..) where +module Series exposing (..) diff --git a/exercises/series/Series.example b/exercises/series/Series.example index 51673fe..65a7d2f 100644 --- a/exercises/series/Series.example +++ b/exercises/series/Series.example @@ -1,4 +1,4 @@ -module Series (..) where +module Series exposing (..) import String import List diff --git a/exercises/series/SeriesTests.elm b/exercises/series/SeriesTests.elm index 25acea7..5f6b71a 100644 --- a/exercises/series/SeriesTests.elm +++ b/exercises/series/SeriesTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Series exposing (slices) @@ -61,6 +59,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/series/elm-package.json b/exercises/series/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/series/elm-package.json +++ b/exercises/series/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/space-age/SpaceAge.elm b/exercises/space-age/SpaceAge.elm index 86aac4c..127c360 100644 --- a/exercises/space-age/SpaceAge.elm +++ b/exercises/space-age/SpaceAge.elm @@ -1,4 +1,4 @@ -module SpaceAge (..) where +module SpaceAge exposing (..) type Planet = Mercury diff --git a/exercises/space-age/SpaceAge.example b/exercises/space-age/SpaceAge.example index 89241e0..41bbc5e 100644 --- a/exercises/space-age/SpaceAge.example +++ b/exercises/space-age/SpaceAge.example @@ -1,4 +1,4 @@ -module SpaceAge (..) where +module SpaceAge exposing (..) type Planet diff --git a/exercises/space-age/SpaceAgeTests.elm b/exercises/space-age/SpaceAgeTests.elm index 3734264..b8f2bb2 100644 --- a/exercises/space-age/SpaceAgeTests.elm +++ b/exercises/space-age/SpaceAgeTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import SpaceAge exposing (Planet(..), ageOn) @@ -37,6 +35,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/space-age/elm-package.json b/exercises/space-age/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/space-age/elm-package.json +++ b/exercises/space-age/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/strain/Strain.elm b/exercises/strain/Strain.elm index f9a33e6..b775bef 100644 --- a/exercises/strain/Strain.elm +++ b/exercises/strain/Strain.elm @@ -1 +1 @@ -module Strain (..) where +module Strain exposing (..) diff --git a/exercises/strain/Strain.example b/exercises/strain/Strain.example index 3865e38..400d72d 100644 --- a/exercises/strain/Strain.example +++ b/exercises/strain/Strain.example @@ -1,4 +1,4 @@ -module Strain (..) where +module Strain exposing (..) import List diff --git a/exercises/strain/StrainTests.elm b/exercises/strain/StrainTests.elm index ebc0337..314e367 100644 --- a/exercises/strain/StrainTests.elm +++ b/exercises/strain/StrainTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Strain exposing (keep, discard) import String @@ -106,6 +104,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/strain/elm-package.json b/exercises/strain/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/strain/elm-package.json +++ b/exercises/strain/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/sublist/Sublist.elm b/exercises/sublist/Sublist.elm index 53ce299..ea96514 100644 --- a/exercises/sublist/Sublist.elm +++ b/exercises/sublist/Sublist.elm @@ -1 +1 @@ -module Sublist (..) where +module Sublist exposing (..) diff --git a/exercises/sublist/Sublist.example b/exercises/sublist/Sublist.example index 6acac34..fa12e09 100644 --- a/exercises/sublist/Sublist.example +++ b/exercises/sublist/Sublist.example @@ -1,4 +1,4 @@ -module Sublist (..) where +module Sublist exposing (..) version : Int diff --git a/exercises/sublist/SublistTests.elm b/exercises/sublist/SublistTests.elm index 714cc87..fe9c85e 100644 --- a/exercises/sublist/SublistTests.elm +++ b/exercises/sublist/SublistTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Sublist exposing (version, sublist, ListComparison(..)) @@ -70,6 +68,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/sublist/elm-package.json b/exercises/sublist/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/sublist/elm-package.json +++ b/exercises/sublist/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/sum-of-multiples/SumOfMultiples.elm b/exercises/sum-of-multiples/SumOfMultiples.elm index c4c1dbd..9e4e957 100644 --- a/exercises/sum-of-multiples/SumOfMultiples.elm +++ b/exercises/sum-of-multiples/SumOfMultiples.elm @@ -1 +1 @@ -module SumOfMultiples (..) where +module SumOfMultiples exposing (..) diff --git a/exercises/sum-of-multiples/SumOfMultiples.example b/exercises/sum-of-multiples/SumOfMultiples.example index 00cf585..20a96db 100644 --- a/exercises/sum-of-multiples/SumOfMultiples.example +++ b/exercises/sum-of-multiples/SumOfMultiples.example @@ -1,4 +1,4 @@ -module SumOfMultiples (..) where +module SumOfMultiples exposing (..) sumOfMultiples : List Int -> Int -> Int diff --git a/exercises/sum-of-multiples/SumOfMultiplesTests.elm b/exercises/sum-of-multiples/SumOfMultiplesTests.elm index 35a6860..2a05c74 100644 --- a/exercises/sum-of-multiples/SumOfMultiplesTests.elm +++ b/exercises/sum-of-multiples/SumOfMultiplesTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import SumOfMultiples exposing (sumOfMultiples) @@ -19,6 +17,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/sum-of-multiples/elm-package.json b/exercises/sum-of-multiples/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/sum-of-multiples/elm-package.json +++ b/exercises/sum-of-multiples/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/triangle/Triangle.elm b/exercises/triangle/Triangle.elm index b66480c..0af09a8 100644 --- a/exercises/triangle/Triangle.elm +++ b/exercises/triangle/Triangle.elm @@ -1 +1 @@ -module Triangle (..) where +module Triangle exposing (..) diff --git a/exercises/triangle/Triangle.example b/exercises/triangle/Triangle.example index 21b2e5a..8dcf719 100644 --- a/exercises/triangle/Triangle.example +++ b/exercises/triangle/Triangle.example @@ -1,4 +1,4 @@ -module Triangle (..) where +module Triangle exposing (..) import Set diff --git a/exercises/triangle/TriangleTests.elm b/exercises/triangle/TriangleTests.elm index cf2b8aa..05bf5d8 100644 --- a/exercises/triangle/TriangleTests.elm +++ b/exercises/triangle/TriangleTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Triangle exposing (triangleKind) @@ -58,6 +56,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/triangle/elm-package.json b/exercises/triangle/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/triangle/elm-package.json +++ b/exercises/triangle/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" } diff --git a/exercises/word-count/WordCount.elm b/exercises/word-count/WordCount.elm index 1e1c287..b8798f9 100644 --- a/exercises/word-count/WordCount.elm +++ b/exercises/word-count/WordCount.elm @@ -1 +1 @@ -module WordCount (..) where +module WordCount exposing (..) diff --git a/exercises/word-count/WordCount.example b/exercises/word-count/WordCount.example index 9b6802e..da7d0fb 100644 --- a/exercises/word-count/WordCount.example +++ b/exercises/word-count/WordCount.example @@ -1,4 +1,4 @@ -module WordCount (..) where +module WordCount exposing (..) import String import Dict exposing (Dict) diff --git a/exercises/word-count/WordCountTests.elm b/exercises/word-count/WordCountTests.elm index 8dd342f..85da5f7 100644 --- a/exercises/word-count/WordCountTests.elm +++ b/exercises/word-count/WordCountTests.elm @@ -1,7 +1,5 @@ -module Main (..) where +module Main exposing (..) -import Task -import Console import ElmTest exposing (..) import Dict exposing (Dict) import WordCount exposing (wordCount) @@ -50,6 +48,6 @@ tests = ] -port runner : Signal (Task.Task x ()) -port runner = - Console.run (consoleRunner tests) +main : Program Never +main = + runSuite tests diff --git a/exercises/word-count/elm-package.json b/exercises/word-count/elm-package.json index d93a035..1ab2bdf 100644 --- a/exercises/word-count/elm-package.json +++ b/exercises/word-count/elm-package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "2.0.0", "summary": "Exercism problems in Elm.", "repository": "https://github.com/exercism/xelm.git", "license": "BSD3", @@ -8,9 +8,8 @@ ], "exposed-modules": [], "dependencies": { - "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", - "elm-lang/core": "2.0.0 <= v < 4.0.0", - "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + "elm-community/elm-test": "1.0.0 <= v < 2.0.0", + "elm-lang/core": "4.0.0 <= v < 5.0.0" }, - "elm-version": "0.15.0 <= v < 0.17.0" + "elm-version": "0.17.0 <= v < 0.18.0" }