Skip to content

Commit

Permalink
Remove dependency on data-default-instances-base
Browse files Browse the repository at this point in the history
Since data-default-class-1.2.0 (released in 2016),
data-default-instances-base just re-exports instances from
data-default-class, and so is redundant.
  • Loading branch information
Xitian9 committed Sep 27, 2021
1 parent 8ed880a commit 1c96abe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/Text/Layout/Table.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ module Text.Layout.Table

import Data.List
import Data.Default.Class
import Data.Default.Instances.Base ()

import Text.Layout.Table.Cell
import Text.Layout.Table.Justify
Expand Down
3 changes: 1 addition & 2 deletions src/Text/Layout/Table/Spec/HeaderColSpec.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Text.Layout.Table.Spec.HeaderColSpec where

import Data.Default.Class
import Data.Default.Instances.Base ()

import Text.Layout.Table.Spec.Position
import Text.Layout.Table.Spec.CutMark
Expand All @@ -17,4 +16,4 @@ headerColumn = HeaderColSpec

-- | Header columns are usually centered.
instance Default HeaderColSpec where
def = headerColumn center def
def = headerColumn center Nothing
9 changes: 3 additions & 6 deletions table-layout.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ library

-- Other library packages from which modules are imported.
build-depends: base >=4.9 && <4.15,
data-default-class >=0.1.1 && < 0.2,
data-default-instances-base ==0.1.*
data-default-class >=0.1.2 && < 0.2

hs-source-dirs: src

Expand All @@ -101,8 +100,7 @@ library
executable table-layout-test-styles
main-is: Test.hs
build-depends: base >=4.9 && <4.15,
data-default-class >=0.1.1 && < 0.2,
data-default-instances-base ==0.1.*
data-default-class >=0.1.2 && < 0.2
hs-source-dirs: src
other-modules: Text.Layout.Table,
Text.Layout.Table.Cell,
Expand Down Expand Up @@ -138,8 +136,7 @@ test-suite table-layout-tests
build-depends: base >=4.9 && <4.15,
QuickCheck >=2.8 && < 2.15,
HUnit >=1.3,
data-default-class >=0.1.1 && < 0.2,
data-default-instances-base ==0.1.*,
data-default-class >=0.1.2 && < 0.2,
hspec

other-modules: TestSpec,
Expand Down

0 comments on commit 1c96abe

Please sign in to comment.