Permalink
Browse files

Expose Trajectory.API and Trajectory.Types as library packages.

  • Loading branch information...
mike-burns committed Dec 28, 2011
1 parent 487dc03 commit 3f28c9db5c4c0aa85cf200acb1bfe8fd35390983
Showing with 31 additions and 7 deletions.
  1. +1 −1 LsStory.hs
  2. +1 −1 Trajectory/{Private → }/API.hs
  3. +29 −5 trajectory.cabal
View
@@ -10,7 +10,7 @@ import Control.Applicative( (<*>) )
import Data.Monoid (mconcat)
import Trajectory.Private.Config (withKey)
-import Trajectory.Private.API (getStories, Story(..), Iteration(..))
+import Trajectory.API (getStories, Story(..), Iteration(..))
main = do
args <- cmdArgs lsStoryArgDefinition
@@ -1,6 +1,6 @@
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings #-}
-module Trajectory.Private.API (
+module Trajectory.API (
getStories
,module Trajectory.Types
) where
View
@@ -37,10 +37,14 @@ Build-type: Simple
-- Extra files to be distributed with the package, such as examples or
-- a README.
--- Extra-source-files:
+Extra-source-files: README.md, LICENSE
-- Constraint on the version of Cabal needed to build this package.
-Cabal-version: >=1.2
+Cabal-version: >=1.6
+
+source-repository head
+ type: git
+ location: git://github.com/mike-burns/trajectory.git
Executable inittj
@@ -51,15 +55,15 @@ Executable inittj
Build-depends: base >= 4.0 && < 5.0
,regexpr
,aeson == 0.5.0.0
- ,attoparsec
+ ,attoparsec == 0.10.1.0
,bytestring
,text
,containers
,cmdargs
,unordered-containers == 0.1.4.3
-- Modules not exported by this package.
- -- Other-modules:
+ Other-modules: Trajectory.Private.Config
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools:
@@ -74,15 +78,35 @@ Executable lsstory
,http-enumerator == 0.7.2.1
,bytestring
,aeson == 0.5.0.0
- ,attoparsec
+ ,attoparsec == 0.10.1.0
,http-types
,text
,containers
,cmdargs
,unordered-containers == 0.1.4.3
+ -- Modules not exported by this package.
+ Other-modules: Trajectory.Private.Config
+
+ -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
+ -- Build-tools:
+
+Library
+ -- Modules exported by the library.
+ Exposed-modules: Trajectory.Types, Trajectory.API
+
+ -- Packages needed in order to build this package.
+ Build-depends: base >= 4.0 && < 5.0
+ ,aeson == 0.5.0.0
+ ,attoparsec == 0.10.1.0
+ ,bytestring
+ ,http-enumerator == 0.7.2.1
+ ,uri
+ ,http-types
+
-- Modules not exported by this package.
-- Other-modules:
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools:
+

0 comments on commit 3f28c9d

Please sign in to comment.