Safe Haskell | None |
---|---|
Language | Haskell2010 |
- story :: StoryId -> TrackerAPI Story
- updateStory :: UpdateStory -> StoryId -> TrackerAPI Story
- stories :: ProjectId -> Maybe StoryState -> TrackerAPI [Story]
- data ServantError :: *
- data Manager :: *
- mkManager :: IO Manager
- type TrackerAPI a = ReaderT (Text, Manager) (ExceptT ServantError IO) a
- runTrackerAPI :: Text -> Manager -> TrackerAPI a -> IO (Either ServantError a)
Documentation
updateStory :: UpdateStory -> StoryId -> TrackerAPI Story Source #
stories :: ProjectId -> Maybe StoryState -> TrackerAPI [Story] Source #
data ServantError :: * #
A type representing possible errors in a request
Note that this type substantially changed in 0.12.
Keeps track of open connections for keep-alive.
If possible, you should share a single Manager
between multiple threads and requests.
Since 0.1.0
type TrackerAPI a = ReaderT (Text, Manager) (ExceptT ServantError IO) a Source #
runTrackerAPI :: Text -> Manager -> TrackerAPI a -> IO (Either ServantError a) Source #