From ffcb07cda797b1d2e1db6536cdc1178f9782ea47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20S=C3=B6derqvist?= Date: Wed, 26 Jun 2024 17:09:20 +0200 Subject: [PATCH] Fix warnings by removing redundant dependency and imports Remove redundant - integers dependency - qualified Data.Int and Data.Ratio imports Add an entry to the CHANGELOG. --- CHANGELOG.md | 2 ++ spago.dhall | 2 +- src/Data/Rational.purs | 2 -- test.dhall | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aedc69..ad607ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ New features: Bugfixes: +- Qualified Data.Int and Data.Ratio imports generate warnings (#44). + Other improvements: ## v6.0.0 diff --git a/spago.dhall b/spago.dhall index cf077b1..c68894d 100644 --- a/spago.dhall +++ b/spago.dhall @@ -1,5 +1,5 @@ { name = "rationals" -, dependencies = [ "integers", "js-bigints", "prelude" ] +, dependencies = [ "js-bigints", "prelude" ] , license = "MIT" , repository = "https://github.com/purescript-contrib/purescript-rationals.git" , packages = ./packages.dhall diff --git a/src/Data/Rational.purs b/src/Data/Rational.purs index c1c43de..530e843 100644 --- a/src/Data/Rational.purs +++ b/src/Data/Rational.purs @@ -12,8 +12,6 @@ module Data.Rational import Prelude -import Data.Int as Int -import Data.Ratio (Ratio, denominator, numerator, (%)) import Data.Ratio as Ratio import JS.BigInt (BigInt) import JS.BigInt as BigInt diff --git a/test.dhall b/test.dhall index 26040d7..5ee6672 100644 --- a/test.dhall +++ b/test.dhall @@ -2,6 +2,6 @@ let conf = ./spago.dhall in conf // { sources = conf.sources # [ "test/**/*.purs" ], - dependencies = conf.dependencies # [ "console", "effect", "integers", "quickcheck", "quickcheck-laws" ] + dependencies = conf.dependencies # [ "console", "effect", "quickcheck", "quickcheck-laws" ] } \ No newline at end of file