Skip to content

Commit

Permalink
Fix some hlint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Mar 8, 2020
1 parent f949e2b commit f80db2d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ cabal.sandbox.config
*.eventlog
.stack-work/
cabal.project.local
stack.yaml.lock
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
language: generic
os: linux

cache:
directories:
- $HOME/.stack

before_install:
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://github.com/TokTok/hs-tools/releases/download/v0.1/hs-tools-v0.1.tar.gz | tar xz -C $HOME
- travis_retry curl -L https://github.com/TokTok/hs-tools/releases/download/v0.6/hs-tools-v0.6.tar.gz | tar xz -C $HOME

script:
- hlint .
Expand Down
17 changes: 0 additions & 17 deletions appveyor.yml

This file was deleted.

15 changes: 7 additions & 8 deletions src/Data/MessagePack/Types/Class.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Trustworthy #-}

--------------------------------------------------------------------
-- |
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
packages: [.]
resolver: lts-6.27
resolver: lts-14.27
5 changes: 4 additions & 1 deletion test/Data/MessagePack/OptionSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec = do

describe "empty" $
it "is a failure" $
empty <|> O.Some "a" `shouldBe` O.Some "a"
empty' <|> O.Some "a" `shouldBe` O.Some "a"

describe "MonadPlus" $ do
it "chooses the left-most success" $ do
Expand Down Expand Up @@ -106,6 +106,9 @@ spec = do
pure' :: a -> O.Option a
pure' = pure

empty' :: O.Option a
empty' = empty

--
-- Applicative laws.
--
Expand Down
5 changes: 4 additions & 1 deletion test/Data/MessagePack/ResultSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec = do

describe "empty" $
it "is a failure" $
empty <|> R.Success "a" `shouldBe` R.Success "a"
empty' <|> R.Success "a" `shouldBe` R.Success "a"

where
--
Expand All @@ -92,6 +92,9 @@ spec = do
pure' :: a -> R.Result a
pure' = pure

empty' :: R.Result a
empty' = empty

--
-- Applicative laws.
--
Expand Down

0 comments on commit f80db2d

Please sign in to comment.