diff --git a/.hlint.yaml b/.hlint.yaml new file mode 100644 index 0000000..f700195 --- /dev/null +++ b/.hlint.yaml @@ -0,0 +1,3 @@ +- ignore: + name: Redundant do + within: spec diff --git a/.stylish-haskell.yaml b/.stylish-haskell.yaml new file mode 100644 index 0000000..a25ae44 --- /dev/null +++ b/.stylish-haskell.yaml @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9229a45 --- /dev/null +++ b/Makefile @@ -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 diff --git a/test/URI/ByteString/ExtensionSpec.hs b/test/URI/ByteString/ExtensionSpec.hs index 84cc72a..2f3ac38 100644 --- a/test/URI/ByteString/ExtensionSpec.hs +++ b/test/URI/ByteString/ExtensionSpec.hs @@ -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