forked from seereason/image-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage-cache.cabal
128 lines (124 loc) · 3.93 KB
/
image-cache.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Name: image-cache
Version: 0.13
License: AllRightsReserved
Copyright: (c) 2014, SeeReason Partners LLC
Author: David Fox <[email protected]>
Maintainer: David Fox <[email protected]>
Homepage: http://src.seereason.com/image-cache
Synopsis: Support for image file processing and caching
Cabal-version: >= 1.8
build-type: Simple
description:
This package includes the following modules, from higher to lower level functionality:
.
* "Appraisal.ImageCache" - Maintain a cache of images, consisting of a map from an @ImageKey@ to an
@Imagefile@. An 'Appraisal.ImageCache.ImageKey' describes how the image has been modified from
its original form - any combination of cropped, scaled, and uprighted. The @build@ method of
the @MonadCache@ instance builds a new image file and inserts it into the map given the
@ImageKey@ describing the desired modifications.
.
* "Appraisal.Cache" - Code to maintain a generalized cache - a Map from keys to values that is
made persistant using acid-state. The @MonadCache@ class has a @build@ method that is passed
a key and either looks up a cache value or creates a new one if not present.
.
* "Appraisal.ImageFile" - The 'ImageFile' type describing the file containing the image - its
location and meta data. Functions to create an 'ImageFile' from a file, a bytestring, or by
modifying another 'ImageFile'. Functions to query or modify an existing 'ImageFile' -
e.g. turn it upright using the EXIF orientation code.
.
* "Appraisal.File" - Maintain a file cache - a persistant bytestring associated with a name. The
name of the files in this cache are equivalent to the file's checksum. This allows easy
exclusion of duplicates. Functions are provided to create a file from an existing 'FilePath',
or by downloading a 'URI', capturing a command's output, or saving a 'ByteString'.
.
* "Appraisal.Image" - data structures describing how an image should
appear on the page. This includes its size, how it is cropped and scaled,
and functions to perform conversions amongst these data structures.
.
* "Appraisal.Exif" - use the EXIF orientation code in a JPEG file to normalize its orientation.
This code is set when the JPEG is create by a camera's orientation sensor.
source-repository head
type: git
location: https://github.com/seereason/image-cache
flag pretty-112
Description: The prettyclass package is included in pretty-1.1.2
Default: True
Library
Hs-Source-Dirs: .
GHC-Options: -Wall -Wredundant-constraints -fno-warn-name-shadowing -O
-- CPP-Options: -DLAZYIMAGES
Extensions: CPP, DataKinds
Exposed-modules:
Appraisal.AcidCache
Appraisal.FileCache
Appraisal.Image
Appraisal.ImageCache
Appraisal.FileCacheT
Appraisal.FileError
Appraisal.Exif
Appraisal.LogException
Appraisal.Utils.ErrorWithIO
Build-Depends:
base >= 4,
binary,
bytestring,
cereal,
containers,
data-default,
directory,
exceptions,
filepath,
hslogger,
lens,
lens-path,
mtl,
network-uri,
parsec,
pretty >= 1.1.2,
pureMD5,
regex-tdfa,
regex-compat-tdfa,
safecopy >= 0.9.4.4,
sr-extra >= 1.58,
syb,
template-haskell,
text,
th-lift,
th-orphans >= 0.9,
transformers,
unix,
Unixutils
if !impl(ghcjs)
Build-Depends:
acid-state,
filemanip-extra,
HUnit,
process >= 1.4.3,
process-extras >= 0.7,
QuickCheck,
utf8-string
else
Build-Depends: Cabal
test-suite image-cache-tests
type: exitcode-stdio-1.0
Hs-Source-Dirs: Tests
Main-Is: Main.hs
Other-Modules: Cache Exif LaTeX
Build-Depends:
acid-state,
base >= 4,
binary,
bytestring,
containers,
directory,
either,
exceptions,
filepath,
HaTeX,
HUnit,
image-cache,
mtl,
text
if !impl(ghcjs)
Build-Depends:
filemanip-extra