This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cabal over stack; upgrade dependencies
Aeson implemented KeyMap to use over Hashmap network client implemented equalCookieJar instead of Eq CookieJar
- Loading branch information
Showing
7 changed files
with
168 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
*/.DS_Store | ||
.cabal-sandbox | ||
cabal.sandbox.config | ||
*.cabal | ||
dist/ | ||
dist-newstyle/ | ||
test_config.yaml | ||
.stack-work/ | ||
stack*.yaml.lock | ||
result | ||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
packages: *.cabal | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/intolerable/api-builder.git | ||
tag: f7440211195da98cfa93b6a97e51892b939919e1 | ||
--sha256: 0x890cr9wlc7w4g679imm90bd07z03s07g6nhjsy97r1mq76igzh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
cabal-version: 2.4 | ||
name: reddit | ||
version: 0.2.3.0 | ||
license: BSD-2-Clause | ||
copyright: Copyright (c) Fraser Murray, 2013-2018 | ||
maintainer: fraser.m.murray@gmail.com | ||
author: Fraser Murray | ||
category: Network | ||
|
||
-- TODO: Before hackage release. | ||
-- A short (one-line) description of the package. | ||
-- synopsis: | ||
|
||
-- A longer description of the package. | ||
description: > | ||
A library for interfacing with Reddit''s API in Haskell. Handles | ||
logins, rate-limiting and converting to and from JSON responses. | ||
Supports most user-facing Reddit API functions, as well as some | ||
moderator endpoints. | ||
Check out the readme at <https://github.com/intolerable/reddit>. | ||
|
||
Contributions are welcome. | ||
|
||
-- A URL where users can report bugs. | ||
-- bug-reports: | ||
|
||
extra-source-files: | ||
LICENSE | ||
README.md | ||
|
||
library | ||
build-depends: | ||
, base | ||
, text | ||
, base >=4.6 | ||
, aeson >=0.9 | ||
, api-builder >=0.10 | ||
, bytestring ==0.10.* | ||
, data-default-class >=0.0.1 | ||
, free >=4 | ||
, http-client >=0.4.30 | ||
, http-client-tls >=0.2 | ||
, http-types >=0.8 | ||
, network >=2.6 | ||
, text ==1.* | ||
, time >=1.5 | ||
, transformers >=0.4 | ||
, unordered-containers >=0.2.5 | ||
, vector >=0.10 | ||
, base64-bytestring | ||
|
||
exposed-modules: | ||
, Reddit.Actions | ||
, Reddit.Actions.Captcha | ||
, Reddit.Actions.Comment | ||
, Reddit.Actions.Flair | ||
, Reddit.Actions.Message | ||
, Reddit.Actions.Moderation | ||
, Reddit.Actions.OAuth | ||
, Reddit.Actions.Post | ||
, Reddit.Actions.Search | ||
, Reddit.Actions.Subreddit | ||
, Reddit.Actions.Thing | ||
, Reddit.Actions.User | ||
, Reddit.Actions.Voting | ||
, Reddit.Actions.Wiki | ||
, Reddit.Login | ||
, Reddit.Types | ||
, Reddit.Types.Captcha | ||
, Reddit.Types.Comment | ||
, Reddit.Types.Error | ||
, Reddit.Types.Flair | ||
, Reddit.Types.Listing | ||
, Reddit.Types.Message | ||
, Reddit.Types.Moderation | ||
, Reddit.Types.Options | ||
, Reddit.Types.OAuth | ||
, Reddit.Types.Post | ||
, Reddit.Types.Reddit | ||
, Reddit.Types.SearchOptions | ||
, Reddit.Types.Subreddit | ||
, Reddit.Types.SubredditSettings | ||
, Reddit.Types.Thing | ||
, Reddit.Types.User | ||
, Reddit.Types.Wiki | ||
|
||
ghc-options: | ||
-Wall -Wcompat -fno-warn-dodgy-imports | ||
|
||
default-extensions: | ||
FlexibleInstances | ||
GADTs | ||
GeneralizedNewtypeDeriving | ||
LambdaCase | ||
OverloadedStrings | ||
|
||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
-- tests: | ||
-- | ||
-- test-anon: | ||
-- main: Spec.hs | ||
-- source-dirs: | ||
-- - test-anon | ||
-- - test-utils | ||
-- default-extensions: | ||
-- - Rank2Types | ||
-- dependencies: | ||
-- - base ==4.* | ||
-- - Cabal >=1.16.0 | ||
-- - api-builder | ||
-- - data-default-class | ||
-- - hspec | ||
-- - text | ||
-- - time | ||
-- - transformers | ||
-- | ||
-- test-io: | ||
-- main: Spec.hs | ||
-- source-dirs: | ||
-- - test-io | ||
-- - test-utils | ||
-- default-extensions: | ||
-- - Rank2Types | ||
-- - RecordWildCards | ||
-- dependencies: | ||
-- - base ==4.* | ||
-- - Cabal >=1.16.0 | ||
-- - api-builder | ||
-- - bytestring | ||
-- - data-default-class | ||
-- - directory | ||
-- - http-client | ||
-- - http-client-tls | ||
-- - hspec | ||
-- - text | ||
-- - time | ||
-- - transformers | ||
-- - yaml | ||
-- | ||
-- test: | ||
-- main: Spec.hs | ||
-- source-dirs: test | ||
-- dependencies: | ||
-- - base ==4.* | ||
-- - Cabal >=1.16.0 | ||
-- - aeson | ||
-- - api-builder | ||
-- - bytestring | ||
-- - hspec | ||
-- - text | ||
-- - time | ||
-- - transformers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.