public
Description: a haskell IRC bot
Homepage:
Clone URL: git://github.com/thoughtpolice/infinity.git
infinity / infinity.cabal
100644 71 lines (64 sloc) 2.166 kb
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
name: infinity
version: 0.4
build-type: Custom
synopsis: small, extensible, pluggable irc bot
description: an irc bot written in haskell that
features hot-code swapping and pluggable
architecture.
category: Network
license: BSD3
license-file: LICENSE
author: Austin Seipp
maintainer: austin@youareinferior.net
cabal-version: >= 1.4
extra-source-files: README,
                     INSTALL,
                     Config.hs,
                     Config.hs-boot,
                     Infinity.hs,
                     Infinity/Main.hs,
                     Infinity/Core.hs,
                     Infinity/Log.hs,
                     Infinity/IRC.hs,
                     Infinity/State.hs,
                     Infinity/Plugins.hs,
                     Infinity/Util.hs,
Infinity/Plugins/HelloWorld.hs,
Infinity/Plugins/StateTest.hs,
Infinity/Plugins/System.hs,
Infinity/Plugins/Unlambda.hs,
Infinity/Plugins/Fortune.hs,
                     Tests/Properties.hs,
util/Unlambda.hs
 
flag dynamic
flag debug
 
 
-- the bot executable
executable infinity
  main-is: Main.hs
  hs-source-dirs: src
  build-depends: binary >= 0.4, filepath, irc >= 0.4, bytestring,
                      QuickCheck >= 2.0, base, directory, process, old-time,
                      stm, containers, mtl, network, haskeline
  extensions: ExistentialQuantification, GeneralizedNewtypeDeriving,
                      MultiParamTypeClasses, CPP, PatternGuards, FunctionalDependencies
  ghc-options: -threaded
 
  if os(win32)
    cpp-options: -DWIN32
 
  if flag(debug)
    ghc-options: -O0
    cpp-options: -DDEBUG
  else
    ghc-options: -O2
 
  if (!flag(dynamic) || flag(debug))
    cpp-options: -DSTATIC_BUILD
  else
    build-depends: plugins >= 1.1
  
-- utilities
-- unlambda
executable unlambda
  main-is: util/Unlambda.hs
  build-depends: base >= 3.0.1.0
  if os(win32)
    ghc-options: -o util/unlambda.exe
  else
    ghc-options: -o util/unlambda