Project setup files

This commit is contained in:
patrick brisbin 2017-12-28 19:00:31 -05:00
parent c36089b0a1
commit 1c24a6a1e5
4 changed files with 51 additions and 5 deletions

3
.hlint.yaml Normal file
View File

@ -0,0 +1,3 @@
- ignore:
name: Redundant do
within: spec

21
.stylish-haskell.yaml Normal file
View File

@ -0,0 +1,21 @@
steps:
- simple_align:
cases: false
top_level_patterns: false
records: false
- imports:
align: none
list_align: after_alias
pad_module_names: false
long_list_align: new_line_multiline
empty_list_align: right_after
list_padding: 4
separate_lists: false
space_surround: false
- language_pragmas:
style: vertical
align: false
remove_redundant: true
- trailing_whitespace: {}
columns: 80
newline: native

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
all: setup build test lint
.PHONY: setup
setup:
stack setup
stack build --dependencies-only --test --no-run-tests
stack install hlint weeder
.PHONY: build
build:
stack build --pedantic --test --no-run-tests
.PHONY: test
test:
stack test
.PHONY: lint
lint:
hlint src test
weeder .
.PHONY: check-nightly
check-nightly:
stack setup --resolver nightly
stack build --resolver nightly --pedantic --test

View File

@ -1,8 +1,7 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module URI.ByteString.ExtensionSpec
( main
, spec
( spec
) where
import Test.Hspec
@ -13,9 +12,6 @@ import URI.ByteString
import URI.ByteString.Extension
import URI.ByteString.QQ
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "IsString Scheme" $ it "works" $ do