update module name, update readme

This commit is contained in:
Mahdi Dibaiee 2016-10-08 16:37:37 +03:30
parent 13b012ff73
commit 62b7ee3151
4 changed files with 29 additions and 24 deletions

View File

@ -21,7 +21,7 @@ Options:
Library
-------
Documentation available at hackage
[Documentation available at hackage](https://hackage.haskell.org/package/picedit-0.1.0.0/docs/Data-Picture.html)
```haskell
import Picture

View File

@ -1,5 +1,5 @@
module Main where
import Picture
import Data.Picture
import System.Environment
data Options = Options { file :: FilePath
@ -27,7 +27,6 @@ module Main where
main :: IO ()
main = do
args <- getArgs
print args
if null args
then do

View File

@ -2,12 +2,12 @@ name: picedit
version: 0.1.0.0
synopsis: simple image manipulation functions
description: Simple set of functions for image manipulation: contrast, brightnesss, rotation, etc.
homepage: https://github.com/mdibaiee/image-editor-hs#readme
homepage: https://github.com/mdibaiee/picedit#readme
license: GPL-3
license-file: LICENSE
author: Author name here
maintainer: example@example.com
copyright: 2016 Author name here
author: Mahdi Dibaiee
maintainer: mdibaiee@aol.com
copyright: 2016 Mahdi Dibaiee
category: Image, Picture, Matrix
build-type: Simple
-- extra-source-files:
@ -15,14 +15,14 @@ cabal-version: >=1.10
library
hs-source-dirs: src
exposed-modules: Picture
exposed-modules: Data.Picture
build-depends: base >= 4.7 && < 5,
JuicyPixels >= 3.2.8 && < 3.3,
hmatrix >= 0.17.0.2 && < 0.18,
vector >= 0.11.0.0 && < 0.12
default-language: Haskell2010
executable image-editor-hs-exe
executable picedit
hs-source-dirs: app
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N

View File

@ -2,7 +2,16 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Picture ( grayscale
{-|
Module : Picture
Description : manipulation functions
Copyright : (c) Mahdi Dibaiee, 2016
License : GPL-3
Maintainer : mdibaiee@aol.com
Stability : experimental
Portability : POSIX
-}
module Data.Picture ( grayscale
, readPicture
, fromImage
, toImage
@ -21,9 +30,6 @@ module Picture ( grayscale
import qualified Data.Vector.Storable as V
import System.IO
import Data.Maybe
import Debug.Trace
-- RGBA
-- | 'Picture' type is just a triple of color channel matrices: (R, G, B)
type Picture = (Matrix Double, Matrix Double, Matrix Double)