Browse Source

Restructured the project

Abhinav Sarkar 8 years ago
parent
commit
0de98e8f18

src/Network/IRC/Bot.hs → hask-irc-core/Network/IRC/Bot.hs View File


src/Network/IRC/Client.hs → hask-irc-core/Network/IRC/Client.hs View File


src/Network/IRC/Handlers.hs → hask-irc-core/Network/IRC/Handlers.hs View File


src/Network/IRC/Handlers/Auth.hs → hask-irc-core/Network/IRC/Handlers/Auth.hs View File


src/Network/IRC/Handlers/Auth/Types.hs → hask-irc-core/Network/IRC/Handlers/Auth/Types.hs View File


src/Network/IRC/Handlers/MessageLogger.hs → hask-irc-core/Network/IRC/Handlers/MessageLogger.hs View File


src/Network/IRC/Handlers/NickTracker.hs → hask-irc-core/Network/IRC/Handlers/NickTracker.hs View File


src/Network/IRC/Handlers/NickTracker/Types.hs → hask-irc-core/Network/IRC/Handlers/NickTracker/Types.hs View File


src/Network/IRC/Handlers/SongSearch.hs → hask-irc-core/Network/IRC/Handlers/SongSearch.hs View File


src/Network/IRC/Protocol.hs → hask-irc-core/Network/IRC/Protocol.hs View File


src/Network/IRC/Types.hs → hask-irc-core/Network/IRC/Types.hs View File


src/Network/IRC/Util.hs → hask-irc-core/Network/IRC/Util.hs View File


hask-irc.cabal → hask-irc-core/hask-irc-core.cabal View File

@@ -25,7 +25,7 @@ homepage:            https://github.com/abhin4v/hask-irc
25 25
 license:             Apache-2.0
26 26
 
27 27
 -- The file containing the license text.
28
-license-file:        LICENSE
28
+license-file:        ../LICENSE
29 29
 
30 30
 -- The package author(s).
31 31
 author:              Abhinav Sarkar
@@ -92,39 +92,6 @@ library
92 92
                        Network.IRC.Handlers.NickTracker.Types,
93 93
                        Network.IRC.Handlers.SongSearch
94 94
 
95
-  hs-source-dirs:      src
96
-
97 95
   default-language:    Haskell2010
98 96
 
99 97
   ghc-options:         -Wall -fno-warn-unused-do-bind -O2 -funbox-strict-fields -fno-warn-orphans
100
-
101
-
102
-executable hask-irc
103
-  -- .hs or .lhs file containing the Main module.
104
-  main-is:             Main.hs
105
-
106
-  -- Modules included in this executable, other than Main.
107
-  -- other-modules:
108
-
109
-  -- LANGUAGE extensions used by modules in this package.
110
-  default-extensions:  NoImplicitPrelude, OverloadedStrings, RecordWildCards, ScopedTypeVariables,
111
-                       BangPatterns, TupleSections, NamedFieldPuns, GeneralizedNewtypeDeriving,
112
-                       DeriveDataTypeable
113
-
114
-  -- Other library packages from which modules are imported.
115
-  build-depends:       base                 >=4.5     && <4.8,
116
-                       hask-irc             ==0.1.0,
117
-                       configurator         >=0.2     && <0.3,
118
-                       classy-prelude       >=0.9     && <1.0,
119
-                       lifted-base          >=0.2     && <0.3,
120
-                       unix                 >=2.7     && <2.8,
121
-                       hslogger             >=1.2     && <1.3
122
-
123
-  -- Directories containing source files.
124
-  hs-source-dirs: hask-irc-runner
125
-
126
-  -- Base language which the package is written in.
127
-  default-language:    Haskell2010
128
-
129
-  ghc-options:         -Wall -fno-warn-unused-do-bind -funbox-strict-fields -fno-warn-orphans
130
-

+ 78
- 0
hask-irc-runner/hask-irc-runner.cabal View File

@@ -0,0 +1,78 @@
1
+-- Initial hask-irc.cabal generated by cabal init.  For further
2
+-- documentation, see http://haskell.org/cabal/users-guide/
3
+
4
+-- The name of the package.
5
+name:                hask-irc-runner
6
+
7
+-- The package version.  See the Haskell package versioning policy (PVP)
8
+-- for standards guiding when and how versions should be incremented.
9
+-- http://www.haskell.org/haskellwiki/Package_versioning_policy
10
+-- PVP summary:      +-+------- breaking API changes
11
+--                   | | +----- non-breaking API additions
12
+--                   | | | +--- code changes with no API change
13
+version:             0.1.0
14
+
15
+-- A short (one-line) description of the package.
16
+synopsis:            A simple extensible IRC bot
17
+
18
+-- A longer description of the package.
19
+-- description:
20
+
21
+-- URL for the project homepage or repository.
22
+homepage:            https://github.com/abhin4v/hask-irc
23
+
24
+-- The license under which the package is released.
25
+license:             Apache-2.0
26
+
27
+license-file:        ../LICENSE
28
+
29
+-- The package author(s).
30
+author:              Abhinav Sarkar
31
+
32
+-- An email address to which users can send suggestions, bug reports, and
33
+-- patches.
34
+maintainer:          abhinav@abhinavsarkar.net
35
+
36
+-- A copyright notice.
37
+-- copyright:
38
+
39
+category:            Network, IRC
40
+
41
+build-type:          Simple
42
+
43
+-- Extra files to be distributed with the package, such as examples or a
44
+-- README.
45
+-- extra-source-files:
46
+
47
+-- Constraint on the version of Cabal needed to build this package.
48
+cabal-version:       >=1.10
49
+
50
+executable hask-irc
51
+  -- .hs or .lhs file containing the Main module.
52
+  main-is:             Main.hs
53
+
54
+  -- Modules included in this executable, other than Main.
55
+  -- other-modules:
56
+
57
+  -- LANGUAGE extensions used by modules in this package.
58
+  default-extensions:  NoImplicitPrelude, OverloadedStrings, RecordWildCards, ScopedTypeVariables,
59
+                       BangPatterns, TupleSections, NamedFieldPuns, GeneralizedNewtypeDeriving,
60
+                       DeriveDataTypeable
61
+
62
+  -- Other library packages from which modules are imported.
63
+  build-depends:       base                 >=4.5     && <4.8,
64
+                       hask-irc             ==0.1.0,
65
+                       configurator         >=0.2     && <0.3,
66
+                       classy-prelude       >=0.9     && <1.0,
67
+                       lifted-base          >=0.2     && <0.3,
68
+                       unix                 >=2.7     && <2.8,
69
+                       hslogger             >=1.2     && <1.3
70
+
71
+  -- Directories containing source files.
72
+  -- hs-source-dirs:
73
+
74
+  -- Base language which the package is written in.
75
+  default-language:    Haskell2010
76
+
77
+  ghc-options:         -Wall -fno-warn-unused-do-bind -funbox-strict-fields -fno-warn-orphans
78
+

+ 16
- 0
init_sanbox.sh View File

@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+set -x #echo on
3
+cabal sandbox init
4
+
5
+cd hask-irc-core
6
+cabal sandbox init --sandbox=../.cabal-sandbox
7
+cd ..
8
+
9
+cd hask-irc-runner
10
+cabal sandbox init --sandbox=../.cabal-sandbox
11
+cabal sandbox add-source ../hask-irc-core/
12
+cd ..
13
+
14
+cd hask-irc-core
15
+cabal install -j3 --only-dependencies
16
+cd ..

Loading…
Cancel
Save