Skip to content
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
9 changes: 0 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ $ npm install -g bower
$ stack test
```

note: if you receive the following error from running tests:
hGetContents: invalid argument (invalid byte sequence)

You may be missing an environment variable. try the following

```bash
$ LC_ALL=en_US.iso88591
$ stack test
```

## Merging changes

Expand Down
1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ executables:
tests:
spec:
defaults: hspec/hspec@master
main: Main
ghc-options:
- -threaded
- -rtsopts
Expand Down
12 changes: 12 additions & 0 deletions test/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Main where

import Prelude

import Test.Hspec.Runner
import qualified Spec
import qualified GHC.IO.Encoding

main :: IO ()
main = do
GHC.IO.Encoding.setLocaleEncoding GHC.IO.Encoding.utf8
hspecWith defaultConfig Spec.spec
2 changes: 1 addition & 1 deletion test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=Spec #-}