mirror of
https://github.com/thma/WhyHaskellMatters.git
synced 2024-08-16 17:00:20 +03:00
clean up
This commit is contained in:
parent
90f2710ee5
commit
fd3195ec54
@ -1,5 +1,4 @@
|
|||||||
# GentleIntroductionToHaskell
|
# Why Haskell Matters
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- Funktionen sind 1st class citizens (higher order functions, Funktionen könen neue Funktionen erzeugen und andere Funktionen als Argumente haben)
|
- Funktionen sind 1st class citizens (higher order functions, Funktionen könen neue Funktionen erzeugen und andere Funktionen als Argumente haben)
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
module Main where
|
|
||||||
|
|
||||||
import Lib
|
|
||||||
|
|
||||||
main :: IO ()
|
|
||||||
main = someFunc
|
|
23
package.yaml
23
package.yaml
@ -1,6 +1,6 @@
|
|||||||
name: GentleIntroductionToHaskell
|
name: WhyHaskellMatters
|
||||||
version: 0.1.0.0
|
version: 0.1.0.0
|
||||||
github: "githubuser/GentleIntroductionToHaskell"
|
github: "thma/WhyHaskellMatters"
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
author: "Thomas Mahler"
|
author: "Thomas Mahler"
|
||||||
maintainer: "thma@apache.org"
|
maintainer: "thma@apache.org"
|
||||||
@ -16,7 +16,7 @@ extra-source-files:
|
|||||||
# To avoid duplicated efforts in documentation and dealing with the
|
# To avoid duplicated efforts in documentation and dealing with the
|
||||||
# complications of embedding Haddock markup inside cabal files, it is
|
# complications of embedding Haddock markup inside cabal files, it is
|
||||||
# common to point users to the README.md file.
|
# common to point users to the README.md file.
|
||||||
description: Please see the README on GitHub at <https://github.com/thma/GentleIntroductionToHaskell#readme>
|
description: Please see the README on GitHub at <https://github.com/thma/WhyHaskellMatters#readme>
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- base >= 4.7 && < 5
|
- base >= 4.7 && < 5
|
||||||
@ -25,19 +25,8 @@ dependencies:
|
|||||||
library:
|
library:
|
||||||
source-dirs: src
|
source-dirs: src
|
||||||
|
|
||||||
executables:
|
|
||||||
GentleIntroductionToHaskell-exe:
|
|
||||||
main: Main.hs
|
|
||||||
source-dirs: app
|
|
||||||
ghc-options:
|
|
||||||
- -threaded
|
|
||||||
- -rtsopts
|
|
||||||
- -with-rtsopts=-N
|
|
||||||
dependencies:
|
|
||||||
- GentleIntroductionToHaskell
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
GentleIntroductionToHaskell-test:
|
WhyHaskellMatters-test:
|
||||||
main: Spec.hs
|
main: Spec.hs
|
||||||
source-dirs: test
|
source-dirs: test
|
||||||
ghc-options:
|
ghc-options:
|
||||||
@ -45,4 +34,6 @@ tests:
|
|||||||
- -rtsopts
|
- -rtsopts
|
||||||
- -with-rtsopts=-N
|
- -with-rtsopts=-N
|
||||||
dependencies:
|
dependencies:
|
||||||
- GentleIntroductionToHaskell
|
- WhyHaskellMatters
|
||||||
|
- hspec
|
||||||
|
- QuickCheck
|
@ -1,6 +0,0 @@
|
|||||||
module Lib
|
|
||||||
( someFunc
|
|
||||||
) where
|
|
||||||
|
|
||||||
someFunc :: IO ()
|
|
||||||
someFunc = putStrLn "someFunc"
|
|
@ -1,2 +1 @@
|
|||||||
main :: IO ()
|
{-# OPTIONS_GHC -F -pgmF hspec-discover #-} -- this compiler pragma allows GHC to automatically discover all Hspec Test Specs.
|
||||||
main = putStrLn "Test suite not yet implemented"
|
|
12
test/Tests/AllTestsSpec.hs
Normal file
12
test/Tests/AllTestsSpec.hs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module Tests.AllTestsSpec where
|
||||||
|
|
||||||
|
import Test.Hspec
|
||||||
|
import Test.QuickCheck
|
||||||
|
|
||||||
|
import Functions
|
||||||
|
|
||||||
|
spec :: Spec
|
||||||
|
spec =
|
||||||
|
describe "Why Haskell matters" $ do
|
||||||
|
it "it has functions" $
|
||||||
|
property $ \x -> square x `shouldBe` x*x
|
Loading…
Reference in New Issue
Block a user