Skip to content

Commit

Permalink
Squash warnings for newer GHCs
Browse files Browse the repository at this point in the history
Also remove ancient stack configs
  • Loading branch information
expipiplus1 committed Dec 13, 2021
1 parent 446939c commit c005115
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 152 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix:
os: [ubuntu-latest]
cabal: [latest]
ghc: ['8.6', '8.8', '8.10', '9.0']
ghc: ['8.8', '8.10', '9.0', '9.2']
fail-fast: false

steps:
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## WIP
- Correct author name
- Squash warnings for newer GHCs

## [0.12.5] - 2021-05-29
- Tweak test suite to fix #35
Expand Down
12 changes: 2 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{ nixpkgsSrc ? builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3.tar.gz"; # nixos-unstable
sha256 = "1j58m811w7xxjncf36hqcjqsfj979hkfcwx9wcrm3g3zbayavapg";
}, pkgs ? import nixpkgsSrc { }, compiler ? null, extraOverrides ? _: _: { }
, modifier ? x: x }:
{ nixpkgsSrc ? <nixpkgs>, pkgs ? import nixpkgsSrc { }, compiler ? null }:

let
haskellPackages = if compiler == null then
Expand All @@ -14,8 +9,5 @@ let
in haskellPackages.developPackage {
name = "";
root = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
overrides = with pkgs.haskell.lib;
pkgs.lib.composeExtensions (_self: _super: { }) extraOverrides;
inherit modifier;
overrides = _self: _super: { };
}

2 changes: 1 addition & 1 deletion src/Data/CReal/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ powerSeries q termsAtPrecision x = crMemoize
p' = p + d
p'' = p' + d
m = atPrecision x p''
xs = (%1) <$> iterate (\e -> m * e /^ p'') (bit p')
xs = (% 1) <$> iterate (\e -> m * e /^ p'') (bit p')
r = sum . take (t + 1) . fmap (round . (* fromInteger (bit d))) $ zipWith (*) q xs
in r /^ (2 * d))

7 changes: 0 additions & 7 deletions stack-7.10.2.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions stack-7.10.2.yaml.lock

This file was deleted.

6 changes: 0 additions & 6 deletions stack-7.10.3.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions stack-7.10.3.yaml.lock

This file was deleted.

5 changes: 0 additions & 5 deletions stack-8.2.2.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions stack-8.2.2.yaml.lock

This file was deleted.

5 changes: 0 additions & 5 deletions stack-8.4.4.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions stack-8.4.4.yaml.lock

This file was deleted.

5 changes: 0 additions & 5 deletions stack-8.6.5.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions stack-8.6.5.yaml.lock

This file was deleted.

1 change: 0 additions & 1 deletion test/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Data.List (inits)
import Data.Maybe (fromJust)
import Data.Proxy
import Data.Ratio ((%))
import Data.Semigroup
import GHC.TypeNats
import Numeric.Natural
import Test.Tasty (TestTree, defaultMain, testGroup)
Expand Down
2 changes: 1 addition & 1 deletion test/Test/QuickCheck/Classes/Extra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Test.QuickCheck.Classes.Extra
) where

import Data.Group (invert, Group, Abelian)
import Data.Monoid ((<>), Sum(..), Product)
import Data.Monoid (Sum(..), Product)
import Test.QuickCheck.Extra (Arbitrary, (<=>), (==>))
import Test.QuickCheck.Modifiers (NonZero)
import Test.QuickCheck.Checkers (commutes, transitive, EqProp, (=-=), BinRel)
Expand Down
1 change: 0 additions & 1 deletion test/Test/QuickCheck/Extra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module Test.QuickCheck.Extra

import Test.QuickCheck
import Test.QuickCheck.Checkers (EqProp)
import Test.QuickCheck.Modifiers (NonZero(..), Positive(..))
import System.Random (Random)

deriving instance Num a => Num (NonZero a)
Expand Down

0 comments on commit c005115

Please sign in to comment.