colors 0.1 → 0.1.1
raw patch · 3 files changed
+8/−7 lines, 3 filesdep ~profunctors
Dependency ranges changed: profunctors
Files
- Data/Color.hs +2/−1
- Data/Color/Names.hs +3/−0
- colors.cabal +3/−6
Data/Color.hs view
@@ -22,7 +22,8 @@ import Data.Char import Data.Color.Class --- | A color that has red, green, blue, alpha as its component. +-- | A color that has red, green, blue, alpha as its components. +-- It is an instance of 'HasRGB' so there are some lenses to tweak individual components. data Color = Color Float Float Float Float deriving (Show, Read, Eq, Ord) instance HasRGB Color where
Data/Color/Names.hs view
@@ -16,6 +16,9 @@ white :: HasRGB a => a white = fromRGB 1.0 1.0 1.0 +gray :: HasRGB a => a +gray = fromRGB 0.5 0.5 0.5 + black :: HasRGB a => a black = fromRGB 0.0 0.0 0.0
colors.cabal view
@@ -1,8 +1,5 @@--- Initial colors.cabal generated by cabal init. For further --- documentation, see http://haskell.org/cabal/users-guide/ - name: colors -version: 0.1 +version: 0.1.1 synopsis: A type for colors -- description: homepage: https://github.com/fumieval/colors @@ -10,7 +7,7 @@ license-file: LICENSE author: Fumiaki Kinoshita maintainer: Fumiaki Kinoshita <fumiexcel@gmail.com> --- copyright: +copyright: Copyright (C) 2013 Fumiaki Kinoshita category: Data build-type: Simple cabal-version: >=1.8 @@ -22,4 +19,4 @@ library exposed-modules: Data.Color, Data.Color.Names, Data.Color.Class -- other-modules: - build-depends: base ==4.*, profunctors ==3.*+ build-depends: base ==4.*, profunctors >= 3 && < 5