Skip to content

Commit

Permalink
depend on NumInstances 1.2 and import only Data.NumInstances.Tuple
Browse files Browse the repository at this point in the history
Fixes #48.  Now we only export the Num (and Eq and Show) instances for
tuples.  Anyone wishing to use Diagrams.CubicSpline with a vector
space built over functions can import Data.NumInstances.Function themselves.
  • Loading branch information
Brent Yorgey committed Mar 21, 2013
1 parent 4fecc4e commit 1424589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion diagrams-lib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Library
diagrams-core >= 0.6 && < 0.7,
active >= 0.1 && < 0.2,
vector-space >= 0.7.7 && < 0.9,
NumInstances >= 1.0 && < 1.1,
NumInstances >= 1.2 && < 1.3,
colour >= 2.3.2 && < 2.4,
data-default >= 0.2 && < 0.6,
pretty >= 1.0.1.2 && < 1.2,
Expand Down
4 changes: 2 additions & 2 deletions src/Diagrams/CubicSpline.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import Diagrams.CubicSpline.Internal
import Diagrams.Path
import Diagrams.Segment


import Data.NumInstances () -- for e.g. the Fractional (Double, Double) instance
-- for e.g. the Fractional (Double, Double) instance
import Data.NumInstances.Tuple ()

import Control.Newtype
import Data.Semigroup
Expand Down

0 comments on commit 1424589

Please sign in to comment.