Skip to content

Commit 4206c64

Browse files
committed
1 parent c147b69 commit 4206c64

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/GitHub/Data/PullRequests.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import GitHub.Data.Repos (Repo)
1717
import Control.DeepSeq (NFData (..))
1818
import Control.DeepSeq.Generics (genericRnf)
1919
import Data.Aeson.Compat (FromJSON (..), ToJSON (..), Value (..), object,
20-
withObject, (.:), (.:?), (.=))
20+
withObject, (.!=), (.:), (.:?), (.=))
2121
import Data.Aeson.Types (Object, Parser)
2222
import Data.Binary.Orphans (Binary)
2323
import Data.Data (Data, Typeable)
@@ -184,7 +184,7 @@ instance FromJSON SimplePullRequest where
184184
<*> o .: "number"
185185
<*> o .: "html_url"
186186
<*> o .: "updated_at"
187-
<*> o .: "body"
187+
<*> o .:? "body" .!= "" -- TODO: no body is treated as empty
188188
<*> o .: "issue_url"
189189
<*> o .: "diff_url"
190190
<*> o .: "url"

src/GitHub/Request.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ executeRequestWithMgr' :: Manager
157157
executeRequestWithMgr' mgr req = runExceptT $
158158
execute req
159159
where
160-
execute :: Request k a -> ExceptT Error IO a
160+
execute :: Request 'False a -> ExceptT Error IO a
161161
execute req' = case req' of
162162
Query {} -> do
163163
httpReq <- makeHttpRequest Nothing req

stack-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2016-01-08
1+
resolver: nightly-2016-05-13
22
packages:
33
- '.'
44
- 'samples/'

0 commit comments

Comments
 (0)