diff --git a/src/Network/IRC/Bot.hs b/hask-irc-core/Network/IRC/Bot.hs similarity index 100% rename from src/Network/IRC/Bot.hs rename to hask-irc-core/Network/IRC/Bot.hs diff --git a/src/Network/IRC/Client.hs b/hask-irc-core/Network/IRC/Client.hs similarity index 100% rename from src/Network/IRC/Client.hs rename to hask-irc-core/Network/IRC/Client.hs diff --git a/src/Network/IRC/Handlers.hs b/hask-irc-core/Network/IRC/Handlers.hs similarity index 100% rename from src/Network/IRC/Handlers.hs rename to hask-irc-core/Network/IRC/Handlers.hs diff --git a/src/Network/IRC/Handlers/Auth.hs b/hask-irc-core/Network/IRC/Handlers/Auth.hs similarity index 100% rename from src/Network/IRC/Handlers/Auth.hs rename to hask-irc-core/Network/IRC/Handlers/Auth.hs diff --git a/src/Network/IRC/Handlers/Auth/Types.hs b/hask-irc-core/Network/IRC/Handlers/Auth/Types.hs similarity index 100% rename from src/Network/IRC/Handlers/Auth/Types.hs rename to hask-irc-core/Network/IRC/Handlers/Auth/Types.hs diff --git a/src/Network/IRC/Handlers/MessageLogger.hs b/hask-irc-core/Network/IRC/Handlers/MessageLogger.hs similarity index 100% rename from src/Network/IRC/Handlers/MessageLogger.hs rename to hask-irc-core/Network/IRC/Handlers/MessageLogger.hs diff --git a/src/Network/IRC/Handlers/NickTracker.hs b/hask-irc-core/Network/IRC/Handlers/NickTracker.hs similarity index 100% rename from src/Network/IRC/Handlers/NickTracker.hs rename to hask-irc-core/Network/IRC/Handlers/NickTracker.hs diff --git a/src/Network/IRC/Handlers/NickTracker/Types.hs b/hask-irc-core/Network/IRC/Handlers/NickTracker/Types.hs similarity index 100% rename from src/Network/IRC/Handlers/NickTracker/Types.hs rename to hask-irc-core/Network/IRC/Handlers/NickTracker/Types.hs diff --git a/src/Network/IRC/Handlers/SongSearch.hs b/hask-irc-core/Network/IRC/Handlers/SongSearch.hs similarity index 100% rename from src/Network/IRC/Handlers/SongSearch.hs rename to hask-irc-core/Network/IRC/Handlers/SongSearch.hs diff --git a/src/Network/IRC/Protocol.hs b/hask-irc-core/Network/IRC/Protocol.hs similarity index 100% rename from src/Network/IRC/Protocol.hs rename to hask-irc-core/Network/IRC/Protocol.hs diff --git a/src/Network/IRC/Types.hs b/hask-irc-core/Network/IRC/Types.hs similarity index 100% rename from src/Network/IRC/Types.hs rename to hask-irc-core/Network/IRC/Types.hs diff --git a/src/Network/IRC/Util.hs b/hask-irc-core/Network/IRC/Util.hs similarity index 100% rename from src/Network/IRC/Util.hs rename to hask-irc-core/Network/IRC/Util.hs diff --git a/hask-irc.cabal b/hask-irc-core/hask-irc-core.cabal similarity index 75% rename from hask-irc.cabal rename to hask-irc-core/hask-irc-core.cabal index 52666df..f385f85 100644 --- a/hask-irc.cabal +++ b/hask-irc-core/hask-irc-core.cabal @@ -25,7 +25,7 @@ homepage: https://github.com/abhin4v/hask-irc license: Apache-2.0 -- The file containing the license text. -license-file: LICENSE +license-file: ../LICENSE -- The package author(s). author: Abhinav Sarkar @@ -92,39 +92,6 @@ library Network.IRC.Handlers.NickTracker.Types, Network.IRC.Handlers.SongSearch - hs-source-dirs: src - default-language: Haskell2010 ghc-options: -Wall -fno-warn-unused-do-bind -O2 -funbox-strict-fields -fno-warn-orphans - - -executable hask-irc - -- .hs or .lhs file containing the Main module. - main-is: Main.hs - - -- Modules included in this executable, other than Main. - -- other-modules: - - -- LANGUAGE extensions used by modules in this package. - default-extensions: NoImplicitPrelude, OverloadedStrings, RecordWildCards, ScopedTypeVariables, - BangPatterns, TupleSections, NamedFieldPuns, GeneralizedNewtypeDeriving, - DeriveDataTypeable - - -- Other library packages from which modules are imported. - build-depends: base >=4.5 && <4.8, - hask-irc ==0.1.0, - configurator >=0.2 && <0.3, - classy-prelude >=0.9 && <1.0, - lifted-base >=0.2 && <0.3, - unix >=2.7 && <2.8, - hslogger >=1.2 && <1.3 - - -- Directories containing source files. - hs-source-dirs: hask-irc-runner - - -- Base language which the package is written in. - default-language: Haskell2010 - - ghc-options: -Wall -fno-warn-unused-do-bind -funbox-strict-fields -fno-warn-orphans - diff --git a/hask-irc-runner/hask-irc-runner.cabal b/hask-irc-runner/hask-irc-runner.cabal new file mode 100644 index 0000000..fd67bd6 --- /dev/null +++ b/hask-irc-runner/hask-irc-runner.cabal @@ -0,0 +1,78 @@ +-- Initial hask-irc.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/ + +-- The name of the package. +name: hask-irc-runner + +-- The package version. See the Haskell package versioning policy (PVP) +-- for standards guiding when and how versions should be incremented. +-- http://www.haskell.org/haskellwiki/Package_versioning_policy +-- PVP summary: +-+------- breaking API changes +-- | | +----- non-breaking API additions +-- | | | +--- code changes with no API change +version: 0.1.0 + +-- A short (one-line) description of the package. +synopsis: A simple extensible IRC bot + +-- A longer description of the package. +-- description: + +-- URL for the project homepage or repository. +homepage: https://github.com/abhin4v/hask-irc + +-- The license under which the package is released. +license: Apache-2.0 + +license-file: ../LICENSE + +-- The package author(s). +author: Abhinav Sarkar + +-- An email address to which users can send suggestions, bug reports, and +-- patches. +maintainer: abhinav@abhinavsarkar.net + +-- A copyright notice. +-- copyright: + +category: Network, IRC + +build-type: Simple + +-- Extra files to be distributed with the package, such as examples or a +-- README. +-- extra-source-files: + +-- Constraint on the version of Cabal needed to build this package. +cabal-version: >=1.10 + +executable hask-irc + -- .hs or .lhs file containing the Main module. + main-is: Main.hs + + -- Modules included in this executable, other than Main. + -- other-modules: + + -- LANGUAGE extensions used by modules in this package. + default-extensions: NoImplicitPrelude, OverloadedStrings, RecordWildCards, ScopedTypeVariables, + BangPatterns, TupleSections, NamedFieldPuns, GeneralizedNewtypeDeriving, + DeriveDataTypeable + + -- Other library packages from which modules are imported. + build-depends: base >=4.5 && <4.8, + hask-irc ==0.1.0, + configurator >=0.2 && <0.3, + classy-prelude >=0.9 && <1.0, + lifted-base >=0.2 && <0.3, + unix >=2.7 && <2.8, + hslogger >=1.2 && <1.3 + + -- Directories containing source files. + -- hs-source-dirs: + + -- Base language which the package is written in. + default-language: Haskell2010 + + ghc-options: -Wall -fno-warn-unused-do-bind -funbox-strict-fields -fno-warn-orphans + diff --git a/init_sanbox.sh b/init_sanbox.sh new file mode 100755 index 0000000..44b85d2 --- /dev/null +++ b/init_sanbox.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -x #echo on +cabal sandbox init + +cd hask-irc-core +cabal sandbox init --sandbox=../.cabal-sandbox +cd .. + +cd hask-irc-runner +cabal sandbox init --sandbox=../.cabal-sandbox +cabal sandbox add-source ../hask-irc-core/ +cd .. + +cd hask-irc-core +cabal install -j3 --only-dependencies +cd ..