From 37a8113e152b7bd290cd2d8c8b488ce99fc43696 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 22 Feb 2016 15:47:27 -0500 Subject: cabal: add & use library target --- presence.cabal | 260 +++++++++++++++++++++++---------------------------------- 1 file changed, 105 insertions(+), 155 deletions(-) diff --git a/presence.cabal b/presence.cabal index cde0262f..921f0cef 100644 --- a/presence.cabal +++ b/presence.cabal @@ -1,6 +1,6 @@ name: presence version: 0.0.1 -cabal-version: >=1.2 +cabal-version: >=1.8 build-type: Simple license: AllRightsReserved synopsis: XMPP Server which detects unix logins @@ -11,185 +11,135 @@ description: When users login to your localhost, their presence is detected and road, extended again to make use of Jingle to facilitate VOIP. author: Joe Crayne data-dir: "" - -executable presence - buildable: True + +library cpp-options: -DRENDERFLUSH c-sources: Presence/monitortty.c hs-source-dirs: . Presence ghc-prof-options: -DNOUTMP ghc-options: -O2 -fwarn-unused-binds -threaded - build-depends: base, - binary, - blaze-builder, - bytestring, - conduit (>=1.0.4), - conduit-extra, - containers, - cpu, - data-default, - deepseq, - directory, - filepath, - hinotify, - mmorph, - mtl, - network, - process, - random, - resourcet, - stm, - template-haskell, - text (>=0.11.2.0), - time, - transformers, - unix, - void, - xml-conduit, - xml-types + hs-source-dirs: . Presence + build-depends: + base, + binary, + blaze-builder, + bytestring, + conduit (>=1.0.4), + conduit-extra, + containers, + cpu, + deepseq, + directory, + filepath, + hinotify, + mtl, + network, + process, + random, + resourcet, + stm, + template-haskell, + text (>=0.11.2.0), + time, + transformers, + unix, + xml-conduit, + xml-types + exposed-modules: + ByteStringOperators, + ClientState, + ConfigFiles, + ConnectionKey, + ConsoleWriter, + Control.Concurrent.STM.StatusCache, + Control.Concurrent.STM.UpdateStream, + ControlMaybe, + Data.BitSyntax, + DNSCache, + EventUtil, + FGConsole, + GetHostByAddr, + LocalPeerCred, + LockedChan, + Logging, + Nesting, + Paths, + PeerResolve, + Server, + SockAddr, + SocketLike, + TraversableT, + UTmp, + XMPPServer + +executable presence main-is: xmppServer.hs - other-modules: ByteStringOperators, - ClientState, - ConfigFiles, - ConnectionKey, - ConsoleWriter, - Control.Concurrent.STM.StatusCache, - Control.Concurrent.STM.UpdateStream, - ControlMaybe, - Data.BitSyntax, - DNSCache, - EventUtil, - FGConsole, - GetHostByAddr, - LocalPeerCred, - LockedChan, - Logging, - Nesting, - Paths, - PeerResolve, - Server, - SockAddr, - SocketLike, - TraversableT, - UTmp, - XMPPServer + buildable: True + cpp-options: -DRENDERFLUSH + hs-source-dirs: . + ghc-prof-options: -DNOUTMP + ghc-options: -O2 -fwarn-unused-binds -threaded + build-depends: + base, presence, + bytestring, + containers, + cpu, + mtl, + network, + resourcet, + stm, + text (>=0.11.2.0), + transformers, + unix executable whosocket main-is: whosocket.hs - hs-source-dirs: . Presence + hs-source-dirs: . cpp-options: -DRENDERFLUSH ghc-options: -O2 -fwarn-unused-binds -threaded - build-depends: base, - binary, - bytestring, - containers, - cpu, - deepseq, - directory, - mtl, - network, - template-haskell, - text (>=0.11.2.0), - unix - other-modules: ByteStringOperators, - ControlMaybe, - Data.BitSyntax, - LocalPeerCred, - Logging, - Paths, - SockAddr, - SocketLike, - UTmp + build-depends: + base, presence, + bytestring, + cpu, + directory, + network, + unix executable nalias2 main-is: nalias2.hs - hs-source-dirs: . Presence + hs-source-dirs: . ghc-options: -O2 -fwarn-unused-binds -threaded - build-depends: base, - text (>=0.11.2.0) - other-modules: DNSCache, ControlMaybe, GetHostByAddr, SockAddr - + build-depends: base, presence, text (>=0.11.2.0) executable consolation main-is: consolation.hs - hs-source-dirs: . Presence + hs-source-dirs: . ghc-options: -O2 -fwarn-unused-binds -threaded cpp-options: -DRENDERFLUSH - c-sources: Presence/monitortty.c - build-depends: base, - binary, - blaze-builder, - bytestring, - conduit (>=1.0.4), - conduit-extra, - containers, - cpu, - data-default, - deepseq, - directory, - filepath, - hinotify, - mmorph, - mtl, - network, - process, - random, - resourcet, - stm, - template-haskell, - text (>=0.11.2.0), - time, - transformers, - unix, - void, - xml-conduit, - xml-types + build-depends: + base, presence, + bytestring, + containers, + cpu, + mtl, + network, + resourcet, + stm, + text (>=0.11.2.0), + transformers, + unix main-is: xmppServer.hs - other-modules: ByteStringOperators, - ClientState, - ConfigFiles, - ConnectionKey, - ConsoleWriter, - Control.Concurrent.STM.StatusCache, - Control.Concurrent.STM.UpdateStream, - ControlMaybe, - DNSCache, - Data.BitSyntax, - EventUtil, - FGConsole, - GetHostByAddr, - LocalPeerCred, - LockedChan, - Logging, - Nesting, - Paths, - PeerResolve, - Server, - SockAddr, - SocketLike, - TraversableT, - UTmp, - XMPPServer executable pwrite main-is: pwrite.hs - hs-source-dirs: . Presence + hs-source-dirs: . ghc-options: -O2 -fwarn-unused-binds -threaded - build-depends: base, - text (>=0.11.2.0) - other-modules: ConnectionKey, - Control.Concurrent.STM.StatusCache, - Control.Concurrent.STM.UpdateStream, - ControlMaybe, - DNSCache, - EventUtil, - GetHostByAddr, - LockedChan, - Nesting, - PeerResolve, - Server, - SockAddr, - XMPPServer + build-depends: + base, + presence, + text (>=0.11.2.0), + unix + -- [ ] ConduitServer.hs:main = mainC -- [ ] Control/Concurrent/STM/StatusCache.hs:-- > main = do q <- atomically $ Cache.new (== '(') (==')') -- [ ] Control/Concurrent/STM/UpdateStream.hs:-- > main = do -- cgit v1.2.3