-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from andys8/update-haskell-ghc-92
- Loading branch information
Showing
9 changed files
with
169 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
dist/ | ||
dist-newstyle/ | ||
dist | ||
dist-* | ||
cabal-dev | ||
*.o | ||
*.hi | ||
*.hie | ||
*.chi | ||
*.chs.h | ||
*.dyn_o | ||
*.dyn_hi | ||
.hpc | ||
.hsenv | ||
.cabal-sandbox/ | ||
cabal.sandbox.config | ||
*.prof | ||
*.aux | ||
*.hp | ||
*.eventlog | ||
.stack-work/ | ||
cabal.project.local | ||
cabal.project.local~ | ||
.HTF/ | ||
.ghc.environment.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
active-repositories: hackage.haskell.org:merge | ||
constraints: any.HUnit ==1.6.2.0, | ||
any.QuickCheck ==2.14.2, | ||
QuickCheck -old-random +templatehaskell, | ||
any.ansi-terminal ==0.11.3, | ||
ansi-terminal -example, | ||
any.array ==0.5.4.0, | ||
any.base ==4.16.3.0, | ||
any.binary ==0.8.9.0, | ||
any.bytestring ==0.11.3.1, | ||
any.call-stack ==0.4.0, | ||
any.colour ==2.3.6, | ||
any.containers ==0.6.5.1, | ||
any.deepseq ==1.4.6.1, | ||
any.directory ==1.3.6.2, | ||
any.exceptions ==0.10.4, | ||
any.filepath ==1.4.2.2, | ||
any.ghc ==9.2.4, | ||
any.ghc-bignum ==1.2, | ||
any.ghc-boot ==9.2.4, | ||
any.ghc-boot-th ==9.2.4, | ||
any.ghc-heap ==9.2.4, | ||
any.ghc-prim ==0.8.0, | ||
any.ghci ==9.2.4, | ||
any.hpc ==0.6.1.0, | ||
any.hspec ==2.10.4, | ||
any.hspec-core ==2.10.4, | ||
any.hspec-discover ==2.10.4, | ||
any.hspec-expectations ==0.8.2, | ||
any.mtl ==2.2.2, | ||
any.pretty ==1.1.3.6, | ||
any.primitive ==0.7.4.0, | ||
any.process ==1.6.13.2, | ||
any.quickcheck-io ==0.2.0, | ||
any.random ==1.2.1.1, | ||
any.rts ==1.0.2, | ||
any.setenv ==0.1.1.3, | ||
any.splitmix ==0.1.0.4, | ||
splitmix -optimised-mixer, | ||
any.stm ==2.5.0.2, | ||
any.template-haskell ==2.18.0.0, | ||
any.terminfo ==0.4.1.5, | ||
any.text ==2.0.1, | ||
text -developer +simdutf, | ||
any.tf-random ==0.5, | ||
any.time ==1.11.1.1, | ||
any.transformers ==0.5.6.2, | ||
any.unix ==2.7.2.2 | ||
index-state: hackage.haskell.org 2022-09-07T06:34:06Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cradle: | ||
cabal: | ||
- path: "src" | ||
component: "lib:hspec-formatters-codewars" | ||
- path: "test" | ||
component: "hspec-formatters-codewars:test:hspec-formatters-codewars-spec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,36 @@ | ||
cabal-version: >=1.10 | ||
|
||
name: hspec-formatters-codewars | ||
version: 0.1.0 | ||
synopsis: Hspec formatter for Codewars | ||
homepage: https://githuc.com/codewars/hspec-formatters-codewars | ||
license: MIT | ||
build-type: Simple | ||
cabal-version: 2.4 | ||
name: hspec-formatters-codewars | ||
version: 0.1.0 | ||
synopsis: Hspec formatter for Codewars | ||
homepage: https://github.com/codewars/hspec-formatters-codewars | ||
license: MIT | ||
build-type: Simple | ||
|
||
library | ||
hs-source-dirs: | ||
src | ||
hs-source-dirs: src | ||
build-depends: | ||
, base >=4 && <5 | ||
, hspec >=2.8 && <3 | ||
, hspec-core >=2.8 && <3 | ||
, text >=2 && <3 | ||
|
||
exposed-modules: Test.Hspec.Formatters.Codewars | ||
default-language: GHC2021 | ||
|
||
test-suite hspec-formatters-codewars-spec | ||
type: exitcode-stdio-1.0 | ||
default-language: GHC2021 | ||
main-is: Main.hs | ||
hs-source-dirs: test src | ||
build-depends: | ||
base ==4.* | ||
, hspec ==2.* | ||
, hspec-core ==2.* | ||
, text ==1.* | ||
exposed-modules: | ||
Test.Hspec.Formatters.Codewars | ||
default-language: | ||
Haskell2010 | ||
, base >=4 && <5 | ||
, hspec >=2.8 && <3 | ||
, hspec-core >=2.8 && <3 | ||
, text >=2 && <3 | ||
|
||
other-modules: | ||
Spec | ||
Spec.ExampleSpec | ||
Test.Hspec.Formatters.Codewars | ||
|
||
build-tool-depends: hspec-discover:hspec-discover >=2 && <3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Main where | ||
|
||
import Test.Hspec.Runner | ||
import Test.Hspec.Formatters.Codewars (codewars) | ||
|
||
import qualified Spec | ||
|
||
main :: IO () | ||
main = hspecWith defaultConfig {configFormatter = Just codewars} Spec.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=Spec #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Spec.ExampleSpec where | ||
|
||
import Test.Hspec | ||
|
||
spec :: Spec | ||
spec = describe "ExampleSpec" $ do | ||
it "can parse integers" $ do | ||
read "10" `shouldBe` (10 :: Int) | ||
|
||
it "can parse floating-point numbers" $ do | ||
read "2.5" `shouldBe` (2.5 :: Float) |