-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhzen.cabal
89 lines (87 loc) · 3.99 KB
/
hzen.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
name: hzen
version: 0.1.0
synopsis: A functional reactive approach to dzen status bars.
description: This package provides utilities for implementing dzen-based
status bars in a functional reactive style. The major
components of this are Monitors and Widgets. There is a
heavy dependency on the reactive-banana package, and a lot
of inspiration was drawn from the xmobar and dzen-utils
packages.
.
In order for a user to pick several aspects of the system
that will be displayed in the status bar, the notion of
Monitor was introduced. A Monitor is essentially the source
of Behaviors and/or Events, providing also an
initialization action and a polling action. The obtaining
of system information is thus encapsulated with little
loss of composability.
.
In order to define the dzen output in a convenient and
type-safe way, Widgets are provided. They may be though
of as Behaviors of String, that is, time-varying dzen
command strings. A little more machinery is defined,
though, to enhance the composability.
license: MIT
license-file: LICENSE
author: Guilherme G. Azzi
maintainer: ggazzi@inf.ufrgs.br
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
library
hs-source-dirs: src/
exposed-modules: Reactive.Banana.Dzen
, Reactive.Banana.Dzen.Bars
, Reactive.Banana.Dzen.Color
, Reactive.Banana.Dzen.Graphics
, Reactive.Banana.Dzen.Process
, Reactive.Banana.Dzen.Time
, Reactive.Banana.Dzen.Unsafe.Position
, Reactive.Banana.Dzen.Widget
, Reactive.Banana.Monitors
, Reactive.Banana.Monitors.Cpu
, Reactive.Banana.Monitors.Mem
, Reactive.Banana.Monitors.Swap
, Reactive.Banana.Monitors.Tick
, Reactive.Banana.Monitors.Time
, Reactive.Banana.Sources
other-modules: Reactive.Banana.Dzen.Internal.Config
, Reactive.Banana.Dzen.Internal.Widget
, Reactive.Banana.Monitors.Class
, Reactive.Banana.Monitors.Internal.Procfs
default-language: Haskell2010
build-depends: base >=4.6 && <4.8
, attoparsec ==0.12.1.*
, bytestring >=0.10 && <0.11
, colour ==2.*
, containers ==0.5.*
, mtl ==2.*
, old-locale ==1.0.*
, process ==1.*
, reactive-banana ==0.8.*
, text ==1.1.*
, time ==1.4.*
, timers ==0.2.*
, transformers ==0.3.*
, suspend ==0.2.*
ghc-options: -threaded
other-extensions: GeneralizedNewtypeDeriving
, Rank2Types
, TupleSections
, TypeFamilies
executable dzenbar
main-is: simple.hs
hs-source-dirs: examples/
default-language: Haskell2010
build-depends: base >=4.6 && <4.8
, bytestring >=0.10 && <0.11
, colour ==2.*
, hzen
, mtl ==2.*
, old-locale ==1.0.*
, process ==1.*
, reactive-banana ==0.8.*
, timers ==0.2.*
, transformers ==0.3.*
, suspend ==0.2.*
ghc-options: -threaded